Looking for a very simple archery autofire macro...

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

Moderator: MacroQuest Developers

kagato
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Jan 31, 2004 12:58 pm

Looking for a very simple archery autofire macro...

Post by kagato » Sat Jan 31, 2004 1:01 pm

im looking for a very simple archery auto fire macro. all i want it to do is fire the arrows when turned on or off by say alt-r.

it kills my hand to have to push my archery button a billion times a raid, so i was hopin one of you guys could either point me in the right direction or write somethin real simple.

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

Post by Goofmester1 » Sat Jan 31, 2004 1:28 pm

exactly how simple? and what button do you have set for archery? Did you relink your hotbutton key to an num pad key or fkeyin eq?

You want it to run till you type /end? want it to stop when you get an experiance message? want it to rebuff? With some more info I can edit mine to work for you very easily.

kagato
decaying skeleton
decaying skeleton
Posts: 2
Joined: Sat Jan 31, 2004 12:58 pm

Post by kagato » Sat Jan 31, 2004 7:38 pm

currently my ranged attack button is 7.
i would like it to work so i have to physically target the mob then start the macro via a keystroke, then to end via the same keystroke if that is possible.

not looking for rebuff or anything fancy. just to be able to push 1 key or type 1 message and have it shoot until i tell it to stop or the mob is dead.

not sure if thats easy/hard/possible. just compiled it today and haven't had much time to work with it.

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

Post by Scary_Penguin » Sat Jan 31, 2004 7:54 pm

Koad made me this macro, I have it edited to use my Dark Cloak of the Sky when I specify, you can delete the checkbuffs sub and call to it if you dont have one, or replace it with eyepatch of plunder and add the appropriate timer.

Map your archery to a numpad key so you can still type when using this macro, and create a hotbutton that says /mqpause.

Pressing this button will start/stop the macro and typing /endmac will end it completely.

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  NUM_5 

sub main
  /if n @Param0==1 /echo "AutoHaste with DCOS is **ON**"
  /if n @Param0==0 /echo "AutoHaste with DCOS is **OFF**" 
  :loop
  /if n @Param0==1 /call CheckBuffs
   
  /if ($char(casting)==FALSE && $target(type)==NPC && $combat==FALSE) { 
    /press ARCHBUTTON 
  } 
  /delay .3s 
  /goto :loop 
/return

Sub CheckBuffs 
   :CheckCloak
      /if n $char(buff,"Haste")==0 {
         :CastCloak
         /cast item "Dark Cloak of the Sky"
         :WaitCast2
         /if $char(casting)==TRUE {
            /delay 0
            /goto :WaitCast2
         }
         /if n $char(buff,"Haste")==0 /goto :CastCloak
      }
/return
Scary:.

No, Really.