Spell Interrupt by oakman8490
Description from the author:
# Script Created by Oakman8490
# This script is meant to bind to a hotkey for casting quick interruption spells.
# Set the minimum time between duplicate spells ==
@setvar! MagicArrowTimer 6000
@setvar! HarmTimer 6000
@setvar! FireballTimer 6000
@setvar! LightningTimer 6000
@setvar! checkLastTarget lasttarget
@setvar! checkSelf self
if not timerexists "MagicArrowCast"
createtimer "MagicArrowCast"
settimer "MagicArrowCast" MagicArrowTimer
endif
if not timerexists "HarmCast"
createtimer "HarmCast"
settimer "HarmCast" HarmTimer
endif
if not timerexists "FireballCast"
createtimer "FireballCast"
settimer "FireballCast" FireballTimer
endif
if not timerexists "LightningCast"
createtimer "LightningCast"
settimer "LightningCast" LightningTimer
endif
if targetexists "beneficial" or targetexists "neutral"
clearall
endif
say "Stop right there!"
if skill "Magery" > 30
if timer "MagicArrowCast" > MagicArrowTimer
cast "Magic Arrow"
settimer "MagicArrowCast" 0
elseif skill "Magery" > 40
if timer "HarmCast" > HarmTimer
cast "Harm"
settimer "HarmCast" 0
elseif skill "Magery" > 50
if timer "FireballCast" > FireballTimer
cast "Fireball"
settimer "FireballCast" 0
elseif skill "Magery" > 60
if timer "LightningCast" > LightningTimer
cast "Lightning"
settimer "LightningCast" 0
endif
endif
endif
endif
endif
wft
if checkLastTarget = checkSelf
overhead "Pick a Target" 34
stop
else
target lasttarget
endifThis script is meant to bind to a hotkey for casting quick interruption spells.