Code: Select all
#event recast "wear off message from your spell#*#"
Sub Main
:loop
/doevents
/goto :loop
/return
Sub Event_recast
cast your spell here
/return
Code: Select all
/declare loottotal int local
:lootlag
/varset loottotal ${Corpse.Items}
/delay 1s ${loottotal}!=${Corpse.Items}
/if (${loottotal}!=${Corpse.Items}) /goto :lootlag
/for i 1 to ${loottotal}
do stuff
next i
Code: Select all
$FindItem[$(itemname}.InvSlot}Code: Select all
/pause 1,/assistsa
/assistma