• You've discovered RedGuides, an EverQuest multi-boxing and scripting community 🧙‍♀️⚙️. We want you to play several EQ characters at once, come join us and say hello! 👋

  • A TLP without truebox has thawed (Very Vanilla ready)
    Frostreaver

Help with debug of macro error

Joined
Feb 8, 2005
RedCents
8,901¢
I get cannot call because a macro isn't running error when i run this code. Whats the deal?

Rich (BB code):
|******Monk.mac v2.1*******|CREATED BY NOOBHAXOR
|-Basic Macro to stick to target on attack and do 2 basic abilities.
|=======1.1 Update=====
|-Error trap Added for Stick at start of fight
|-Added Monk Epic weapon cast when no haste potion used
|=======1.2 Update=====
|Fixed logical error and broke combat into diffrent sub-routine
|=======1.3 Update=====
|Added Event State to prevent spamming screen when casting skill
|======================
|VERSION 2.0 RELEASE===
|======================
|-Added Waypoint running to do complete afk killin
|=======2.1 Update=====
|-Code consolidation (Removal of all moveto logic in sub-routines)
|-MQ2Melee Compatibility added (Set VARIABLE to use)
|WARNING: MQ2MOVEUTILS MUST BE LOADED!!!!!!!
|
|Misc. Credits
|-Various old macros from myself (noobhaxor)

#event Stunned "You are too distracted to use a skill.#*#" 
#event Stunned "You are stunned#*#" 
#event Stunned "You can't cast spells while stunned!#*#" 
#event Stunned "You can't attack while stunned!#*#" 
#event Stunned "You cannot use a skill while stunned!#*#" 
#event Stunned "You *CANNOT* cast spells, you have been silenced!#*#" 

#include spell_routines.inc 

Sub Main 

   /declare HealerName string outer NameofShammy
   /declare myzone int outer ${Zone.ID}
   |------------------------------------------------------------
   |Declare Safe Players.
   |------------------------------------------------------------
   /alert add 2 pc ${HealerName}
   /alert add 2 pc ${Me}
   |------------------------------------------------------------
   |Change Usemeleeplugin to 1 for use with MQ2melee 
   |------------------------------------------------------------
   /delcare UseMeleePlugin      int outer 0

   |------------------------------------------------------------
   |DO NOT MODIFY VARIABLES DEFINED BELOW!!!
   |------------------------------------------------------------
   /declare StickFighting       int outer 0
   /declare FightTimer        timer outer 0m
   /declare targetspotted       int outer 0

|>>>Sets up Waypoints that you will run to
/declare SpawnXloc[6] string outer
   /varset SpawnXloc[1] "1052"
   /varset SpawnXloc[2] "wp2"
   /varset SpawnXloc[3] "wp3"
   /varset SpawnXloc[4] "wp4"
   /varset SpawnXloc[5] "wp5"
   /varset SpawnXloc[6] "wp6"
/declare SpawnYloc[6] string outer
   /varset SpawnYloc[1] "1472"
   /varset SpawnYloc[2] "wp2"
   /varset SpawnYloc[3] "wp3"
   /varset SpawnYloc[4] "wp4"
   /varset SpawnYloc[5] "wp5"
   /varset SpawnYloc[6] "wp6"

|>>>Sets your camp at start of Macro
   /makecamp on


:mainwatch
/if (${StickFighting}==1) /varset StickFighting 0
/if (${FightTimer}==0) /call AquireTarget
/if (${Me.Combat}) /call Combat
/call playercheck

/goto :mainwatch

/return

|--------------------------------------------------------------------------------
|SUB: Aquire Target
|--------------------------------------------------------------------------------
Sub AquireTarget
/keypress esc
/delay 20
/moveto ${SpawnYloc[1]} ${SpawnXloc[1]}
/target ${NearestSpawn[NPC]}
/if (${NearestSpawn[NPC].Distance}>160) {
	/varset FightTimer 1m
	/keypress esc
	/makecamp return
	/return
	} else {
	/ranged
	/delay 3s
	/makecamp return
	:waitfortarget
	/if (${Target.Distance}<30) {
	  /attack on
	  /return
	  }
	/goto :waitfortarget
	}

/return

|--------------------------------------------------------------------------------
|SUB: Combat
|--------------------------------------------------------------------------------
Sub Combat
:combatstart
/doevents
|---------Run once at start of fight--------|
   /if (${StickFighting}==0) {
	/varset StickFighting 1
	/stick 13
   } 

|----MONK WITH EPIC LOGIC DO NOT HAVE MQ2MELEE ON IF YOU WANT TO USE!!!
/if (${UseMeleePlugin}==0) {
   /if ((${Me.AbilityReady["Flying Kick"]}) && (${Target.Distance}<18) && (${Me.Endurance}>500)) /doability "Flying Kick"
   /if ((${Me.CombatAbilityReady["Clawstriker's Flurry"]}) && (${Target.Distance}<18) && (${Me.Endurance}>500)) /doability "Clawstriker's Flurry"
   /if (!${Me.Buff["Celestial Tranquility"].ID} && !${Me.Buff["Elixir of Speed X"].ID}) {
	/call Cast "Celestial Fists" item
	/goto :combatstart
	}
}
|---------Run at end of fight---------------|
   /if (!${Target.ID}) { 
	/keypress back 
	/varset StickFighting 0
	/delay 3s
	/if (${NearestSpawn[NPC].Distance}<40) {
	  /target ${NearestSpawn[NPC]}
	  /attack on
	  /goto :combatstart
	  }
	/varset FightTimer 1m
	/varset targetspotted 0
	/attack off 
	/return
   } 
/goto :combatstart
/return

Sub Event_Stunned 
   /delay 1s
/return 

|--------------------------------------------------------------------------------
|SUB: Playercheck
|--------------------------------------------------------------------------------
Sub playercheck
|-----------Player Check-------Anyone comes near you jet!
   /if (${Spawn[pc noalert 2 radius 400].ID}) { 
	:playerhold
	/if (!${Spawn[pc noalert 2 radius 500].ID}) /return
	/goto :playerhold
	}
   /return
 
I'm retarded please ignore me lol... I forgot to /endmac before starting this one. Apparently, by not doing that, it would give me that error message.

Thanks guys for the PMs hehe.
 
Help with debug of macro error

Users who are viewing this thread

Back
Top
Cart