Code: Select all
|Archery Macro v. 1.0c
|Archery Assist Macro.
|
|HISTORY
|Version 1.0c
| - Fixed the macro to end when the mob dies. (Ghetto stopping the arrow from firing... Turning off macro)
|Version 1.0b
| - Fixed having the user to fire 1st arrow for macro to run
| - Still need to fix how to turn it off once mob is dead
|Version 1.0a
| - Need user intervention to Fire 1st arrow for the macro to work
| - Need user intervention to turn off the macro even after mob is dead
#turbo infinite
Sub Main
/ECHO :: Yee' Ole' Autofire Macro ::
/ECHO :: Version 1.0c ::
/ECHO :: Usage: /macro Archery ::
/declare Fightswitch global
/declare CastTimer timer
/varset Fightswitch 1
:Mainloop
/call Fightswitch
/if @Fightswitch=="0" /call Fightswitch
/doevents
/goto :mainloop
/return
| --> This subset is a switch to check for mob target
Sub Fightswitch
/if $target()=="TRUE" {
/if $combat=="FALSE" {
/varset Fightswitch 1
/call Arrow
}
}
/if $target()=="FALSE" {
/varset Fightswitch 0
/if $combat=="FALSE" {
/varset Fightswitch 0
/attack off
/return
}
/return
}
/varset Fightswitch 0
/return
| --> Loop for arrows
Sub Arrow
:arrowloop
/if $target()=="TRUE" {
/face fast nopredict
/delay 3
/press 2 |Change arrow button to your own
/if $target()=="FALSE" {
/varset Fightswitch 0
/sit
/goto :stopfiring
}
}
/goto :arrowloop
:stopfiring
/endmacro
/return
