Page 1 of 1

"Cannot find label :EngageTrigger"

Posted: Mon Aug 09, 2004 1:12 am
by a_troll_01
When running the macro below, I keep getting messages like the following spewed out at me, and I can't figure out where it's coming from:

Couldn't find label :EngageTrigger
GrpRogue.mac@45 (Event_Attack): /if (${dir}<1) /varcalc dir ${dirt}+ 12

Couldn't find label :EngageTrigger
GrpRogue.mac@39 (Event_Attack): /if ($Target.Type.Equal[NPC]}) /face nolook

The spew always points to different lines, but always has the "Couldn't find label :EngageTrigger"

In the code below, you'll notice nowhere in it does it have any reference to an :EngageTrigger

Code: Select all

|=============================================================================
|------------------------------ GrpRogue.mac v1.9 ----------------------------
|--------------------------- 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
|--- Behind-Mob Calc by Jerle, ripped from Rogue Helper 4.3
|--- Enjoy! 
|=============================================================================

#event Attack "Auto attack is on." 

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

Sub Main 
   /echo GrpRogue.mac v.1.8 Activated!
   :MainLoop 
   /if (${Target.Type.Equal[NPC]}) /doevents 
   /goto :MainLoop 
/endmacro 

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

Sub Event_Attack
   /echo -( ${Target.CleanName} )- ... Level ${Target.Level} ${Target.Class.Name}
   /if (${Me.Sneaking}) /doability "Sneak"
   /declare i int 
   /declare dir int 
   /declare behindTarget bool 
   :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) {
         /varset behindTarget FALSE 
         /for i -2 to 2 
         /varcalc dir (${Target.Heading.Clock}+${i})%12 
         /if (${dir}<1) /varcalc dir ${dir}+12 
         /if (${dir}>12) /varcalc dir ${dir}-12 
         /if (${dir} == ${Me.Heading.Clock}) /varset behindTarget TRUE 
         /next i    
         /if (${behindTarget}) /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"
         /if (${Target.PctHPs}>20 && ${Me.Speed}==0.00) /doability "Hide" 
         /if (${Target.Type.Equal[NPC]}) /attack on
      }
|      /if (${Me.AbilityReady[Disarm]}) /doability "Disarm"
      /if (${Target.Type.Equal[NPC]}) /goto :SubLoop
      }
   /attack off
   :SneakHideLoop
   /if (${Me.AbilityReady[Sneak]} && !${Target.Type.Equal[NPC]} && ${Me.AbilityReady[Hide]}) {
      /delay 1s
      /doability "Sneak"
      /doability "Hide"
      /goto :End
      }
    /doevents
    /goto :SneakHideLoop
   :End
/return
I've been off EQ for about 4 months, and just came back and recompiled MQ and everything, and pulled this macro out of the closet, and I'm left with a blank. Anyone know what could be causing this? Any help would be greatly appreciated.
[/quote]

Posted: Mon Aug 09, 2004 1:26 am
by a_troll_01
Okay, well, I was thinking that :EngageTrigger rang a bell, so I dug through my old macros and found 2 macros that contained that. 'rogue.mac' and 'rogue2.mac' ... but when I execute the code above, it's always "/macro GrpRogue" ... I deleted the 2 older macros I mentioned above, and I'm sure I can figure the rest of it out from here, but I'm still curious how they were getting referenced? Was MQ2 trying to run the 'rogue.mac' because 'GrpRogue' contained the word 'rogue' or something, in an attempt to correct syntax errors? That would be news to me.

Posted: Mon Aug 09, 2004 3:05 am
by dont_know_at_all
Check your aliases.
Check your directories, as in, omg I put the new mac in the old directory.

Posted: Mon Aug 09, 2004 8:45 am
by a_troll_01
I figured out what it was. I had a /custombind left over from a macro I ran earlier that I didn't clean up.