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