About Us
Products
Purchase
Downloads
Support
Forums
Contact Us
Site
 Register to post in forums, or Log in to your existing account
 

Play RetroMUD
Post new topic  Reply to topic     Home » Forums » Finished MUD Scripts
nazradin
Apprentice


Joined: 23 Mar 2003
Posts: 114
Location: New Zealand

PostPosted: Sun May 09, 2004 8:40 am   

GS4 spell tracker
 
spell tracker for someone who can cast 405, keeps track of your self cast spells and lets you know when they fall below fair time ie less than 5 minutes, if you want less than 30 minutes delete fair from the triggers.

this is set for my wizard self cast spells, just change to spells you want to keep track of


Naz


#CLASS {SpellupMaster|spell checker}
#ALIAS checkmyspells {
selfcast = ""
#FORALL @myspelllist {#VAR selfcast {%additem( %i, @selfcast)}}
prep 405
cast
#alarm +2 {
#if {@selfcast = ""} {#echo spells are good} {
#echo You need to refresh spells
#show @selfcast
}
}
}
#VAR selfcast {}
#VAR myspelllist {401|406|414|425|430|503|507|508|509|513|520|905|911|913|916|920}
#TRIGGER {Elemental Defense I *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "401", @selfcast)
}
#TRIGGER {Elemental Defense II *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "406", @selfcast)
}
#TRIGGER {Elemental Defense III *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "414", @selfcast)
}
#TRIGGER {Elemental Targeting *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "425", @selfcast)
}
#TRIGGER {Elemental Barrier *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "430", @selfcast)
}
#TRIGGER {Thurfel's Ward *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "503", @selfcast)
}
#TRIGGER {Elemental Deflection *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "507", @selfcast)
}
#TRIGGER {Elemental Bias *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "508", @selfcast)
}
#TRIGGER {Strength *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "509", @selfcast)
}
#TRIGGER {Elemental Focus *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "513", @selfcast)
}
#TRIGGER {Stone Skin *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "520", @selfcast)
}
#TRIGGER {Prismatic Guard *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "905", @selfcast)
}
#TRIGGER {Mass Blur *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "911", @selfcast)
}
#TRIGGER {Melgorehn's Aura *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "913", @selfcast)
}
#TRIGGER {Invisibility *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "916", @selfcast)
}
#TRIGGER {Call Familiar *{fair|lot|great}*remaining.} {
#gag
#VAR selfcast %delitem( "920", @selfcast)
}
#BUTTON 150 {spellchecker} {checkmyspells} {} {} {} {} {} {Size} {88} {17} {Pos} {17} {795} {} {} {} {} "" {} {} {} {2}
#CLASS 0
Reply with quote
nazradin
Apprentice


Joined: 23 Mar 2003
Posts: 114
Location: New Zealand

PostPosted: Fri May 21, 2004 10:15 am   
 

another version

this one uses spell active command which means that it can be used by any class, but is a have or havenot rather than letting you know when spells get low as well.

below is the version i use for my cleric , again just change triggers and vars for spells you want to know about

Naz

#CLASS {SpellupMaster|spell checker}
#ALIAS checkmyspells {
selfcast = ""
#FORALL @myspelllist {#VAR selfcast {%additem( %i, @selfcast)}}
spell active
#alarm +2 {
#if {@selfcast = ""} {#echo spells are good} {
#echo You need to refresh spells
#show @selfcast
}
}
}
#VAR selfcast {}
#VAR myspelllist {101|102|103|107|202|303|307|310|313}
#TRIGGER {Spirit Warding I} {
#gag
#VAR selfcast %delitem( "101", @selfcast)
}
#TRIGGER {Spirit Warding II} {
#gag
#VAR selfcast %delitem( "107", @selfcast)
}
#TRIGGER {Spirit Barrier} {
#gag
#VAR selfcast %delitem( "102", @selfcast)
}
#TRIGGER {Spirit Defense} {
#gag
#VAR selfcast %delitem( "103", @selfcast)
}
#TRIGGER {Spirit Shield} {
#gag
#VAR selfcast %delitem( "202", @selfcast)
}
#TRIGGER {Prayer of Protection} {
#gag
#VAR selfcast %delitem( "303", @selfcast)
}
#TRIGGER {Benediction} {
#gag
#VAR selfcast %delitem( "307", @selfcast)
}
#TRIGGER {Warding Sphere} {
#gag
#VAR selfcast %delitem( "310", @selfcast)
}
#TRIGGER {Prayer} {
#gag
#VAR selfcast %delitem( "313", @selfcast)
}
#BUTTON 62 {spellchecker} {checkmyspells} {} {} {} {} {} {Size} {88} {17} {Pos} {19} {800} {} {} {} {} "" {} {} {} {2}
#CLASS 0
Reply with quote
Display posts from previous:   
Post new topic   Reply to topic     Home » Forums » Finished MUD Scripts All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

© 2009 Zugg Software. Hosted by Wolfpaw.net