sh.mac - SneakHide, a lite version of AutoRogue

Post your completed (working) macros here. Only for macros using MQ2Data syntax!

Moderator: MacroQuest Developers

Cunning
a lesser mummy
a lesser mummy
Posts: 61
Joined: Tue Mar 23, 2004 4:42 pm

sh.mac - SneakHide, a lite version of AutoRogue

Post by Cunning » Thu Apr 29, 2004 5:51 pm

This is just a watered-down version of AutoRogue. It does sneak/hide when you're not in combat or casting. When you are in combat, it auto evades and backstabs. I made it for those times you want to retain control of movement but not all the button pressing. As always, comments/suggestions/bug reports are welcome.

Code: Select all

Sub Main
	/echo SneakHide 1.0 Active.
	/assist off
	/attack off

:CheckCombat
	/delay 1
	
	/if (${Me.Combat}) {
		/if (${Target.ID}) {
			/if (${Me.Sneaking}) {
				/attack on
				/doability "Sneak"
			}
		
			/if (${Me.AbilityReady["Hide"]}) {
				/attack off
				/delay 4
				/doability "Hide"
				/attack on
			}
	
			/if (${Me.AbilityReady["Backstab"]}) /doability "Backstab"
		} else {
			/attack off
		}
	}

	/delay 3
	
	/if (!${Me.Combat} && ${String[${Me.Casting}].Length}==4) {	
:WaitForSneak 
       	/if (${Me.Sneaking}) { 
       	    /goto :WaitForHide 
       	} else { 
       	    /doability "Sneak" 
       	    /delay 4 
       	    /goto :WaitForSneak 
       	} 
	        
:WaitForHide 
	    /delay 4 
	    /if (${Me.AbilityReady["Hide"]}) /doability "Hide" 
 	    /delay 9
	}

	/goto :CheckCombat
/endmacro