Page 2 of 2
Posted: Tue May 04, 2004 8:01 am
by Fire
yesman: yes that is what ive been doing, problem is it resets back to default on each mob, gets kinda old having to do it everytime. I've found that when your druid friend is agro kiting for you, the range that the macro sets for each mob is just alittle bit too far away while the mob is running.
Stix: Thanks for the code, will give it a try when i get home from work :)
Try this
Posted: Tue May 04, 2004 1:47 pm
by Azum
I think this is what you were asking for. That last macro posted won't run.
Code: Select all
|Stik.mac
| BETA !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! BETA !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|5-3-04 11:45 PM
|
|Syntax:
| Usage: /macro stick 14 ( or other range you choose )
|
|
|Functions:
| 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.
|-Stix
#event rageon "has become ENRAGED."
#event rageoff "is no longer enraged"
#event stunned "while stunned"
#event slain "has been slain"
/declare MaxD outer
sub main
/echo STICK MAC STARTED
:main
/doevents
/if (${Me.Combat}) /goto :mob
/goto :main
:mob
/if (${Target.Distance}>100) {
/echo (${Target}) IS OOR
/attack off
/goto :main
}
/if (${Target.ID}) {
/if (${Defined[Param0]}) /varset MaxD ${Param0}
/if (!${Defined[Param0]}) /varset MaxD ${Target.MaxRange.Int}
/echo Attacking (${Target}) at ${MaxD} distance.
/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.Distance}<${MaxD}-2) /if (${Me.AbilityReady[Disarm]}) /doability "Disarm"
/if (${Target.Distance}<${MaxD}-2) /if (${Me.AbilityReady[begging]}) {
/attack off
/face fast nolook
/delay 1
/doability "begging"
/if (!${Target.ID}) /goto :main
/attack on
}
/if (${Target.ID}) /goto :combat
/keypress back
/goto :main
/return
sub event_rageon
/if (${Target.CurrentHPs}>10) /return
/popup ENRAGED ATTACK OFF
/echo Rage On
/attack off
/keypress back
/return
sub event_rageoff
/if (${Target.CurrentHPs}>10) /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
Posted: Tue May 04, 2004 10:55 pm
by Fire
Only had a few mins to test it, Azum's version works but it keeps returning a Null on range when you launch the macro with a set distance. Not sure why its not pulling the distance, but dont have much time to play around with it today, maybe tomorrow............
Fire