• Hail, we're RedGuides. We want you to play six (yes, 6!) EverQuest characters at once. We have scripts and a friendly community to help, please join our playstyle and say hello! 👋
  • We've added LLM sections to our Terms & Rules and Resource Rules, for everyone's sanity & in-game safety.
    Read more
    a. Do not replace your voice with an LLM. This goes for your posts and your scripts. Drafting and editing with a tool is fine, but don't take you out of what you share.
    b. Do not replace your EQ character's voice with an LLM. We don't want scripts that speak over /ooc, /shout or other public channels. This has been an unwritten rule that's kept casino scripts off the site for decades, but we're now compelled to make it clear: keep automated communication private.

    Why Does RG Review Scripts?
    Nearly every LLM-written Lua script we see is making your character do impossible things, and rarely in a way that's beneficial to you. We've seen heavy server hammering, /target over impossible distances when /nav spawn would passively accomplish the same thing, a spawn search that fires 20+ times per second, and other pointless actions that are likely annoying GMs.

    You are welcome to use LLMs as a tool to structure, draft, and edit your work, but please read critically before hitting /lua run

Help with debug of macro error

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
 
Help with debug of macro error

Users who are viewing this thread

Back
Top
Cart