modified sun castspell to automatimagical get delay of spell

Macro depository for macros written before the user variable changes that broke all of them.

Moderator: MacroQuest Developers

pxlpluker
a lesser mummy
a lesser mummy
Posts: 53
Joined: Tue Aug 27, 2002 12:20 pm

modified sun castspell to automatimagical get delay of spell

Post by pxlpluker » Fri Oct 04, 2002 12:46 pm

just a small mod. i like to cast be gem number so i have not included some other posibilities

Code: Select all

Sub CastSpell2
   | Usage: /call CastSpell <spellgem> 
   |        delay is calculated from the <$calc($spell("$char(gem,3)",casttime)+$spell("$char(gem,3)",recoverytime))s> and an s is added to tell MQ that it is in seconds
   | Uses globals v98{gem}, v99{delay}, and t9{delay timer}
   /mqlog entered CastSpell <$p0> <$calc($spell("$char(gem,3)",casttime)+$spell("$char(gem,3)",recoverytime))s>-calc 
   /varset v98 $p0
   /varset v99 $calc($spell("$char(gem,$p0)",casttime)+$spell("$char(gem,$p0)",recoverytime))s
   /stand
   /call event_CastFizzle
   :CastSpell_WaitCast
/doevents
   /if n $t9>0 /goto :CastSpell_WaitCast
   /mqlog left Cast spell
/return