Very Basic Auto Archery

Got a cool macro idea? Wanna request a macro? Here is the place for you!

Moderator: MacroQuest Developers

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Very Basic Auto Archery

Post by Scary_Penguin » Mon Dec 01, 2003 12:40 am

Hi, Im not looking for any of these complex macros that buff, shoot, and assist for me in battle. I would just like one that will continute to fire arrows, activated with a single button push (My ranged attack button is 1) And ended with that same button.

I pull a lot and have to constantly keep moving as a ranger to make sure i have decent LoS. Something like this would allow me to manage my own buffs and nukes and only automate the archery part. My hand and finger gets cramped after so long :/

I would like to be able to cast spells and switch targets during this with no issues or massive spam because I have myself or a groupmember targeted for a heal, without turning the auto attack off. Example: Pull a mob to camp, step back, hit archery macro button. Add pops and tank needs an extra heal, hit f whatever to target and then alt # for a heal without having th stop the arrows, and once i target the mob again, have it resume shooting.

Can anyone help out?

koad
Plugins Czar
Posts: 127
Joined: Fri May 16, 2003 8:32 pm

Post by koad » Mon Dec 01, 2003 2:55 am

Code: Select all

|autoarch.mac
|koad 12-01-03
|this macro will press the key you edit in the #define below
|when the following conditions are met:
|whenever you are NOT casting or autoattacking,
|and wont try unless the target is an NPC
|to stop this macro, hit esc to lose your target,
|then you can /end or hit your /endmacro button
|if you want this macro to run all the time, i recommend
|turning on auto attack to pull, then once you get
|the mob to the camp, turn off auto attack and it
|will resume trying to press ARCHBUTTON

#define ARCHBUTTON  1

sub main
  :loop
  /if ($char(casting)==FALSE && $target(type)==NPC && $combat==FALSE) {
    /press ARCHBUTTON
  }
  /delay 2
  /goto :loop
/return

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Post by Scary_Penguin » Mon Dec 01, 2003 3:06 am

Any way I can get this to be running but activate and deactivate with a keystroke? This is pretty much exactly what i want other than that.

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Post by Scary_Penguin » Mon Dec 01, 2003 3:31 am

Asked some people in the IRC. Got it set up the way I want, thank you Koad for the macro!

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Post by Scary_Penguin » Tue Dec 02, 2003 3:13 am

Ok, someone in IRC said something about not using / commands because they have to be keyed into the chat window. I see this now because when I try and type while I am shooting, I get lots of 0's everywhere as it tries to hit the button. Any way to make it directly press the ranged attack button without having a hotkey for it? this would free up a slot on my main hotkey page also.

/gu h0i ever0one, h0ow 0ar0e you0

looks annoying :p

Virtuoso65
a hill giant
a hill giant
Posts: 150
Joined: Wed Oct 15, 2003 2:29 pm

Post by Virtuoso65 » Tue Dec 02, 2003 3:46 am

There is no way to trigger archery or any range attack via direct link as you can with /attack or /doability. You can how ever remap your hotkeys to oh say 1-10 to the keys F1-10. When you hit a F key it does not intrupt chat like a num key or any other char key. I have been using this method for a long time for twisting on my bard and it let me twist and talk at the same time.

Goofmester1
a hill giant
a hill giant
Posts: 241
Joined: Thu Nov 06, 2003 4:26 am

Post by Goofmester1 » Tue Dec 02, 2003 6:48 am

Use a numberpad key also and you can chat without getting spammed. Also while you have chat active you are still shooting..

Basically any none text chat key should work. Simply go into EQ options and rekey your hotkey button say 0 to alt key being num_6. Then set the macro to press num_6 instead of 0.

Also can you explain how you get the macro to stop and start with only hitting the one key stroke.. seems like something I would like to use.

User avatar
Dniper
a lesser mummy
a lesser mummy
Posts: 71
Joined: Tue Nov 25, 2003 2:54 pm

Post by Dniper » Tue Dec 02, 2003 2:53 pm

I imagine you could just make a social key that issues the command to start/stop the macro then map the slot to a key.

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Post by Scary_Penguin » Tue Dec 02, 2003 9:57 pm

I imagine you could just make a social key that issues the command to start/stop the macro then map the slot to a key.
I use a hotkey that says /mqpause to start/stop shooting. I dont mind typing /mac whatever when i get into a group. This i got taken care of with some help in the IRC Channel. As far as mapping my archery to a num key, I think I will try that, thank you guys. Hope it works :)

Bones
orc pawn
orc pawn
Posts: 27
Joined: Sat Sep 07, 2002 5:37 pm

Post by Bones » Wed Dec 03, 2003 2:48 pm

Mind reposting your final macro?

I could make use if this one.. perfect for boxing the ranger on raids!

Scary_Penguin
a lesser mummy
a lesser mummy
Posts: 76
Joined: Sun Nov 16, 2003 11:45 am

Post by Scary_Penguin » Wed Dec 03, 2003 8:25 pm

I have a few more changes to make, so that it does not go breaking mezzes (if i forget to pause it and reassist, blam). Once I do that, and maybe add a buff checker (Eagle Eye, SoE, Natures Precision, Warders Protection). Also remember that Im not using it to nuke for me so thats a big part of ranger dps (I could add something like that if you wanted too). Thanks to Koad for the original little script.