Evercast: Yet another macro to continually cast a spell
Posted: Thu Jul 08, 2004 2:32 pm
| Usage: /macro evercast (Spellname|gem#)
| Casts (spellname|gem#) until there is not enough mana, then sits, regens mana and starts over
| Automatically Autoinv's summoned items
| Macro must be exited manually.
#turbo
Sub Main
:Top
/stand
:Loop
/docommand ${If[${Me.SpellReady[${Param0}]},/delay 0,/goto :ReadySpell]}
/if (${Cursor.ID} ) /autoinv
/docommand ${If[${Spell[${Me.Gem[${Param0}]}].Mana}> ${Me.CurrentMana}, /multiline ; /sit ; /goto :Manawait, /cast ${Param0}]}
/goto :Loop
/return
:ReadySpell
/docommand ${If[${Me.SpellReady[${Param0}]}, /goto :Top, /goto :ReadySpell]}
:Manawait
/docommand ${If[${Me.CurrentMana} < ${Me.MaxMana}, /delay 5s, /goto :Top]}
/goto :Manawait
| Casts (spellname|gem#) until there is not enough mana, then sits, regens mana and starts over
| Automatically Autoinv's summoned items
| Macro must be exited manually.
#turbo
Sub Main
:Top
/stand
:Loop
/docommand ${If[${Me.SpellReady[${Param0}]},/delay 0,/goto :ReadySpell]}
/if (${Cursor.ID} ) /autoinv
/docommand ${If[${Spell[${Me.Gem[${Param0}]}].Mana}> ${Me.CurrentMana}, /multiline ; /sit ; /goto :Manawait, /cast ${Param0}]}
/goto :Loop
/return
:ReadySpell
/docommand ${If[${Me.SpellReady[${Param0}]}, /goto :Top, /goto :ReadySpell]}
:Manawait
/docommand ${If[${Me.CurrentMana} < ${Me.MaxMana}, /delay 5s, /goto :Top]}
/goto :Manawait