chanter 2 boxed just to slow and cripple
Posted: Mon Mar 13, 2006 8:28 am
ok here is what i have but the Synapsis Spasm part seams to end the macro. I cant see whats wrong and i wounder if fresh eyes will see. Please help.
Code: Select all
|usage: /Macro encbot <Start Health> <Tank Name>
#include spellcast.inc
#Event Zoned "#*#You have entered#*#"
#Event Exp "#*#You gain#*#experience#*#"
#Event Exp "#*#slain #*#"
#Event Exp "#*#Corpse#*#"
#Event resist "Your target resisted the Forlorn Deeds spell#*#"
#Event resist "Your Forlorn Deeds spell has worn off#*#"
#Event notweak "Your Synapsis Spasm spell has worn off#*#"
#Event Slowsuccess "#*#slows down#*#"
#Event Weaksuccess "#*#is weak#*#"
#Event Immune "#*#changes in its run speed#*#"
#Event EndMacro #*#rest now#*#"
Sub Main
/echo usage: /Macro encbot <Start Health> <Tank Name>
/echo Enchanter Slow Bot started
/1 Taking over slowing duties
/deletevar TargetHealth
/deletevar Assist
/declare TargetHealth int global
/declare Assist string global
/declare auto_fire int outer 0
/declare IsSlowed int outer 0
/declare Isweak int outer 0
/varset TargetHealth ${Param0}
/varset Assist ${Param1}
:MainLoop
/doevents
/call Nuke
/delay 50
/goto :MainLoop
/return
Sub Nuke
/assist ${Assist}
/delay 5
/if (${IsSlowed}==0 && ${Target.PctHPs}<=95) /call Cast "Forlorn Deeds" gem2
/if (${IsWeak}==0 && ${Target.PctHPs}<=90) /call Cast "Synapsis Spasm" gem1
/if (${Target.Type.NotEqual[NPC]}) {
/if (${auto_fire}==1) /call cast "Insanity" gem3
/delay 5
/return
}
/if (${Target.PctHPs}<=${TargetHealth} && ${Target.Distance}>30) {
/face
/if (${auto_fire}==0) /call cast "Insanity" gem3
/call Slow
}
/return
Sub Slow
/if (${IsSlowed}==0 && ${Target.PctHPs}<=95) /call Cast "Forlorn Deeds" gem2
/return
Sub Weak
/if (${Isweak}==0 && ${Target.PctHPs}<=90) /call Cast "Synapsis Spasm" gem1
/return
Sub Event_Zoned
/echo Zoned...Helper is off
/varset IsSlow 0
/varset IsWeak 0
/endmacro
/return
Sub Event_Exp
/tar ${Assist}
/varset IsSlowed 0
/varset IsWeak 0
/1 Next Victim please
/return
Sub Event_resist
/return
Sub Event_Endmacro
/1 Resting :)
/endmacro
/return
Sub Event_Slowsuccess
/1 ${Target.CleanName} slowed
/varset IsSlowed 1
/return
Sub Event_Weaksuccess
/1 ${Target.CleanName} Weakend
/varset IsWeak 1
/return
Sub Event_Immune
/echo ${Target.CleanName} slow immune
/varset IsSlowed 1
/return