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

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

Moderator: MacroQuest Developers

User avatar
a_troll_01
a lesser mummy
a lesser mummy
Posts: 46
Joined: Sat Dec 06, 2003 6:06 am
Location: Memphis, TN
Contact:

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

Post by a_troll_01 » Sat May 15, 2004 8:32 am

*** 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
Last edited by a_troll_01 on Wed May 26, 2004 2:12 am, edited 3 times in total.
-- a_troll_01

Jewzaho
orc pawn
orc pawn
Posts: 18
Joined: Fri Jan 09, 2004 2:36 pm

Post by Jewzaho » Fri May 21, 2004 12:18 am

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"

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Fri May 21, 2004 6:45 am

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.

Jewzaho
orc pawn
orc pawn
Posts: 18
Joined: Fri Jan 09, 2004 2:36 pm

Post by Jewzaho » Fri May 21, 2004 11:16 am

cool, thanks!

Jewzaho
orc pawn
orc pawn
Posts: 18
Joined: Fri Jan 09, 2004 2:36 pm

Post by Jewzaho » Fri May 21, 2004 4:38 pm

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

Preocts
a snow griffon
a snow griffon
Posts: 312
Joined: Thu Jan 29, 2004 1:02 pm

Post by Preocts » Fri May 21, 2004 4:56 pm

:? post your code.