events not being processed?

Need help with a macro you are writing? Ask here!

Moderator: MacroQuest Developers

seagal
decaying skeleton
decaying skeleton
Posts: 2
Joined: Tue Feb 24, 2004 1:20 pm

events not being processed?

Post by seagal » Sat Jun 05, 2004 6:45 pm

thought i fixed the events but still they aren't firing... any suggestions?
----------------------------------------------------------------------------------





|Stick.mac
|
|
|Syntax:
| Usage: /macro stick
|
|
|Functions:
| Now automatically sets Max Distances for you.
| Will auto Kick, Beg, and disarm.
| Will turn off attack on ENRAGE, only if it is your mob that is enraged.
| Stoping attack while the macro is running will stop movment.
|


#Event rageon "#*#has become ENRAGED#*#"
#Event rageoff "#*#is no longer enraged#*#"
#Event stunned "#*#while stunned#*#"
#Event slain "#*#has been slain#*#"

sub main

/echo STICK MAC STARTED

:main
/doevents
/if (${Me.Combat}) /goto :mob
/goto :main

:mob
/if (${Target.Distance}>150) {
/echo (${Target}) IS OOR
/attack off
/goto :main
}
/if (${Target.ID}) {
/deletevar MaxD
/declare MaxD int local
/varset MaxD ${Target.MaxRangeTo}
/if (${MaxD}>20) /varset MaxD 20
/if (${MaxD}>40) /varset MaxD 30
/echo Attacking a level ${Target.Level} ( ${Target.CleanName} ) at a Distance of ${MaxD}
/goto :combat
}
/goto :main

:combat
/doevents
/if (${Target.ID}==${Me.ID}) /attack off
/if (!${Me.Combat}) /goto :main
/face fast nolook
/if (${Target.Distance}>${MaxD}-2) /keypress forward hold
/if (${Target.Distance}<=${MaxD}-4) /keypress forward
/if (${Target.Distance}<${MaxD}-7) /keypress back hold
/if (${Target.Distance}<${MaxD}-2) /if (${Me.AbilityReady[Kick]}) /doability "Kick"
/if (${Target.ID}) /goto :combat
/keypress back
/goto :main
/return

sub event_rageon
/if (${Target.CurrentHPs}>40) /return
/popup ENRAGED ATTACK OFF
/echo Rage On
/attack off
/keypress back
/return

sub event_rageoff
/if (${Target.CurrentHPs}>40) /return
/popup Rage OFF, ATTACKING NOW
/echo Rage Off
/attack on
/return

sub event_stunned
/popup STUNNED STUNNED STUNNED
/delay 1s
/return

sub event_slain
/keypress back
/return

dman
a hill giant
a hill giant
Posts: 181
Joined: Fri Dec 05, 2003 12:54 pm

Post by dman » Sat Jun 05, 2004 6:48 pm

http://macroquest2.com/phpBB2/viewtopic.php?t=7066

also

Code: Select all

 Using the Code brackets to make code readable.....