Page 1 of 1

GrpRogue.mac v1.7 (Updated 5-25-2004)

Posted: Sat May 15, 2004 8:32 am
by a_troll_01
*** Updated 5/25/2004 ***
- Just wanted to note that because of our beloved DX9, this macro is best used with AutoDuck turned OFF in the options menu.
- Added in Preocps "Duck to stop attacking" & duck spam fix.
- Took out most of the fluff and made it smaller.

Been tinkering with this macro on and off for about 6 months now. This is the latest version. It's not a full blown auto-pilot. It'll just take care of your Abilities for you (such as Backstab and Evade) and keep you facing the mob for easier strafing. The rest is up to you. Enjoy. Feedback, modifications, etc, all welcome and appreciated.

Code: Select all

|=============================================================================
|------------------------------ GrpRogue.mac v1.7 ----------------------------
|--------------------------- Rogue Ability Autopilot -------------------------
|-----------------------------------------------------------------------------
|--- Usage: /macro GrpRogue
|---        Duck to stop attacking
|--- Does Rogue abilities during combat for you. 
|--- (Pick Pockets, Disarm, Backstab, Evade, Begging)
|-----------------------------------------------------------------------------
|--- By: a_troll_01 - Last Updated (5/25/04) 
|--- MQ2Dat Conversion by Wassup
|--- 'Duck to turn attack off' by Preocts
|--- Enjoy! 
|=============================================================================

#event Attack "Auto attack is on." 

|=============================================================================

Sub Main 
   /echo GrpRogue.mac v.1.8 Activated! Be sure Backstab, Hide, Pick Pockets, & Disarm are on Ability/Combat buttons.
   :MainLoop 
   /if (${Target.Type.Equal[NPC]}) /doevents 
   /goto :MainLoop 
/endmacro 

|=============================================================================

Sub Event_Attack
   /echo -( ${Target.CleanName} )- ... Level ${Target.Level} ${Target.Class.Name}
   :SubLoop 
   /if (${Target.Type.Equal[NPC]} && !${Me.Ducking}) {
      /if (${Target.Type.Equal[NPC]}) /face nolook
      /if (!${Me.Combat} && !${Me.Ducking}) /attack on
      /if (${Me.AbilityReady[Backstab]} && ${Target.PctHPs}<90) /doability "Backstab"
      /if (${Me.AbilityReady[Pick Pockets]} && ${Me.AbilityReady[Hide]}) {
         /attack off
         /delay 1
         /if (${Target.Type.Equal[NPC]} && ${Target.PctHPs}<65) /doability "Pick Pockets"
         /if (${Target.Type.Equal[NPC]}) /face nolook
         /if (${Target.Type.Equal[NPC]} && ${Target.PctHPs}>64) /doability "Begging"
         /doability "Hide" 
         /if (${Target.Type.Equal[NPC]}) /attack on
      }
      /if (${Me.AbilityReady[Disarm]}) /doability "Disarm"
      /if (${Target.Type.Equal[NPC]}) /goto :SubLoop
      }
   /attack off
/return

Posted: Fri May 21, 2004 12:18 am
by Jewzaho
Any way to make it so i can turn off attack when i hit the button or when i duck. Currently if i duck i get spammed with "auto attack off"

Posted: Fri May 21, 2004 6:45 am
by Preocts
Well, this might help fix the spamming problem.

Code: Select all

Sub Attack 
   [color=red]/if (!${Me.Combat} && !${Me.Ducking}) /attack on [/color]
   /if (${Me.AbilityReady[Backstab]}) /doability "Backstab" 
   /if (${Me.AbilityReady[Hide]}) /call Hide 
|----------------------------------------------------------------------------- 
From the looks of it however the macro doesn't let you stop attacking as long as there is an npc as your target. So.. if you wanted to 'duck out' of combat, rogue joke; nevermind, you could add this condition:

Code: Select all

   /if (${Target.Type.Equal[NPC]} && !${Me.Ducking}) { 
      /face nolook 
      /call Attack 
      /goto :SubLoop 
      } 
   /attack off 
That way when you Duck it'll turn attack off and wait for you to hit attack again before starting again.

Posted: Fri May 21, 2004 11:16 am
by Jewzaho
cool, thanks!

Posted: Fri May 21, 2004 4:38 pm
by Jewzaho
Bleh, now it spams mq2 window when i duck with "bs.mac@51 (attack): /call attack" and after it spams like 50 of those it says "bs.mac37 (Even_attack): /call attack" and "bs.mac25 (main): :Mainloop" then ends the macro

Posted: Fri May 21, 2004 4:56 pm
by Preocts
:? post your code.