Page 1 of 1
looking for a very simple ranger macro plese
Posted: Thu Jul 01, 2004 6:57 am
by p00pey
Hi I am looking for a macro just for auto fire and thats all I need. If anyone could help me I would like that alot.
Posted: Thu Jul 01, 2004 6:44 pm
by BlackShadow
Just wrote this, but havent tested it.. It may or may not work, but will try to test it tomorrow, dont have time to start up EQ atm, sorry.
Edit the ARCHBUTTON declare to whatever your archery button is defined as.
Code: Select all
|archery.mac
/declare ARCHBUTTON outer
/varset ARCHBUTTON F12
sub main
/echo "Autoarchery activated"
:loop
/if (${String[${Target.Type}].Equal[NPC]}) {
/if (!${Me.Combat}) {
/if (!${Me.Casting.ID}) {
/if (${Target.PctHPs}<=97) {
/keypress ARCHBUTTON
}
}
}
}
/delay 2
/goto :loop
/return
Edit: I know its very ugly with 4 IFs like that, but too tired to care atm.
Posted: Fri Jul 02, 2004 2:31 am
by p00pey
arrows.mac@12 (main):/keypress ARCHBUTTON
red text under that says Invalid mappable command or keycombo arch button
Posted: Fri Jul 02, 2004 2:34 am
by p00pey
now when I try to start it again it the current macro has ended
auto archery activated
Posted: Fri Jul 02, 2004 3:33 am
by BlackShadow
Just try:
Code: Select all
|archery.mac
sub main
/echo "Autoarchery activated"
:loop
/if (${String[${Target.Type}].Equal[NPC]}) {
/if (!${Me.Combat}) {
/if (!${Me.Casting.ID}) {
/if (${Target.PctHPs}<=97) {
/ranged
}
}
}
}
/delay 2
/goto :loop
/return
I guess one could toss in a ${Me.RangedReady} verification instead of the delay thou.. /shrug
Posted: Fri Jul 02, 2004 3:36 am
by BlackShadow
Oh, not sure what you really wanted btw, but this macro should shoot arrows at any NPC you target that has less then 97% health.
No buttons needed to press or anything.
If you cast a spell or turn on melee attack, it should not try to shoot any arrows..
Posted: Fri Jul 02, 2004 7:56 am
by p00pey
sir you own thanks alot last one works good
Posted: Tue Jul 13, 2004 2:00 am
by Zarlok
you should add in a line to use hotkey x also... to assist whomever. Friend did this at a tables group the other day worked great with the autofire macro with auto assist also.
Posted: Sun Nov 14, 2004 4:58 am
by boomer
new at all this stuff guys, so be easy...
this is perfect for what i was lookin for. All i wanted was a ranged fight from my ranger bot. Would be nice if somebody could add in the necessary code to be able to set an autoassist to the tank and then repost...
thanks
Posted: Sun Nov 14, 2004 8:12 am
by fice
can't test this cause i don't play a ranger, but it should work i think!
Code: Select all
|archery.mac
|Usage: /mac archery.mac <tank name>
|Example: /mac archery.mac Grimpy
sub main
/declare assist string outer
/varset assist ${Param0}
/echo "Autoarchery activated"
:loop
/assist ${assist}
/delay 5
/if (!${Target.ID} || !${Target.Type.Equal["NPC"]} || ${Target.PctHPs}>97) /goto :loop
:attack
/if (${Target.Type.Equal["NPC"]} && ${Target.PctHPs}<=97 && ${Target.Distance.Int}<=100) {
/if (!${Me.Combat} && !${Me.Casting.ID} && ${Me.RangedReady}) {
/face fast
/ranged
}
/delay 1
/goto :attack
}
/delay 1
/goto :loop
Posted: Mon Nov 15, 2004 10:42 am
by Neolesh