Spell Cycler by Brozan (Syal)
Description from the author:
#Script by Brozan
#Spell Cycler to be used with
# wizards grimoire special spells
#Does not do timers since they can be so variable
@createlist spellCycle
if list spellCycle <= 0
@unsetvar 'destoyIt'
wait 200
endif
if not varexist 'destoyIt'
//Aquire a target
overhead 'New Target' 33
@setvar! 'destoyIt '
wait 100
//Load up the list
@clearlist spellCycle
@pushlist 'spellCycle' "Mana Drain"
@pushlist 'spellCycle' "Curse"
@pushlist 'spellCycle' "Magic Arrow"
@pushlist 'spellCycle' "Harm"
@pushlist 'spellCycle' "Fireball"
@pushlist 'spellCycle' "Lightning"
endif
if inlist 'spellCycle' 'Mana Drain'
cast 'Mana Drain'
waitfortarget
target destoyIt
poplist 'spellCycle' 'front'
elseif inlist 'spellCycle' 'Curse'
cast 'Curse'
waitfortarget
target destoyIt
poplist 'spellCycle' 'front'
elseif inlist 'spellCycle' 'Magic Arrow'
cast 'Magic Arrow'
waitfortarget
target destoyIt
poplist 'spellCycle' 'front'
elseif inlist 'spellCycle' 'Harm'
cast 'Harm'
waitfortarget
target destoyIt
poplist 'spellCycle' 'front'
elseif inlist 'spellCycle' 'Fireball'
cast 'Fireball'
waitfortarget
target destoyIt
poplist 'spellCycle' 'front'
elseif inlist 'spellCycle' 'Lightning'
cast 'Lightning'
waitfortarget
target destoyIt
poplist 'spellCycle' 'front'
else
overhead 'Sequence done'
unsetvar 'destoyIt'
poplist 'spellCycle' 'front'
wait 100
endif
wait 2000
overhead 'Passive Script Engaged' 33
if not timerexists "healpot"
createtimer "healpot"
settimer "healpot" 8000
endif
if not timerexists "shroomy"
createtimer "shroomy"
settimer "shroomy" 61000
endif
while not dead
# If hidden, skip
if hidden
continue
endif
if insysmsg 'you cannot move!'
overhead 'Paralyzed!' 34
overhead [pouch
endif
#Eat a magic mushroom if we have
#25 less mana than full
if mana < 60 and timer "shroomy" >= 61000
wait 500
//add this wait to avoid
//eating a shroom on a refund
if mana < 60
dclicktype '29012'
overhead 'Mushroom Power!'
settimer "shroomy" 0
endif
endif
if not findtype "Yellow Potion" backpack
overhead 'Out of heal potions!' 34
wait 200
endif
//Heal drinker if below 40
if hp < 55
if findtype "Yellow Potion" backpack
if timer "healpot" >= 8000
overhead 'Drinking heal!'
potion "heal"
wait 200
settimer "healpot" 0
endif
endif
endif
wait 100
endwhileOne hotkey push for multiple spells