evade.mac (Lazy Monk/Rogue Evade Macro)

A forum for you to dump all the macros you create, allowing users to use, modify, and comment on your work.

Moderator: MacroQuest Developers

kagonis
a hill giant
a hill giant
Posts: 228
Joined: Sat May 24, 2003 8:48 pm

evade.mac (Lazy Monk/Rogue Evade Macro)

Post by kagonis » Wed Oct 15, 2003 2:41 pm

Just make a hotbutton that calls this macro:
/macro evade

Code: Select all

|** evade.mac
Evade macro for the lazy monk/rogue ;)
Just make a simple hotbutton with /macro evade

Made this so that if attacked was turned of before evade,
it would not be turned back on after evade. Mostly to
avoid enrage and such.
**|

#event FDFAIL " has fallen to the ground"

Sub Main
	/declare varFailed global
|	/filter macros enhanced
	/if "$combat"=="TRUE" {
		/declare l0 local
		/varset l0 $target(id)
	}
	/attack off
	:Loop
		/if "$char(class)"=="Monk" /if n $char(ability,"Feign Death")>0 /doability "Feign Death"
		/if "$char(class)"=="Rogue" /if n $char(ability,"Hide")>0 /doability "Hide"
		/if "$char(class)"=="Monk" /doevents
		/if "$char(class)"=="Monk" /if n @varFailed==1 {
			/varset varFailed 0
			/stand
			/goto :Loop
		}
		/if "$char(class)"=="Monk" /stand
		/if n @l0>0 /if n $target(id)==@l0 /attack on 
/return

Sub Event_FDFAIL
	/varset varFailed 1
/return