#include spellstuff.mac
and place the stuff below in spellstuff.mac (or whatever you wanna call it)... then somewhere in your own code ...
/call Loadspell # "spellname #" # "spellname #" # "spellname #" # "spellname #" # "spellname #"
example:
/call LoadSpell 1 "complete heal" 2 "remedy" 3 "celestial elixer"
can mem up to 5 spells at a time
Code: Select all
Sub loadspell
/if "$p0"=="" /return
/if "$p1"=="" /return
/book
/call Memorize $p0 $p1
/if "$p2"!="" {
/call WaitSpellLoad $p0
/call Memorize $p2 $p3
}
/if "$p4"!="" {
/call WaitSpellLoad $p2
/call memorize $p4 $p5
}
/if "$p6"!="" {
/call WaitSpellLoad $p4
/call Memorize $p6 $p7
}
/if "$p6"!="" {
/call WaitSpellLoad $p6
/call Memorize $p8 $p9
}
/return
Sub Memorize
/if "$p0"=="" /return
/if "$p1"=="" /return
/click right 104 $int($p0*38-1
/memspell $p0 "$p1"
/return
Sub WaitSpellLoad
:KeepWaiting
/if "$char(gem,$p0)"=="NULL" {
/delay 2
/goto :KeepWaiting
}
/if "$char(gem,$p0)"=="" {
/delay 2
/goto :KeepWaiting
}
/return

