• 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

Question - Basic target macro

I'm trying to put together a macro that targets within a certain range and z radius. I really want to take out the los part and add something that factors in x and y radius instead. I sometimes get aggro from above or below with the LOS piece when mobs path a certain way. Macro is basically pulling mobs within a certain radius to me

I've tried to pull from other macros but they all declare ranges in a different section. Wasn't sure if I was able to do it without doing all of that.

Rich (BB code):
    /doevents
 	/if (${Target.ID} != ${Me.ID} && !${Me.Combat}) 	{	
			/target id ${Spawn[NPC los radius 75].ID}
				/cast 1
				/delay 5s ${Spawn[NPC los radius 75].ID}
			}
 
re zradius:
http://redguides.com/docs/projects/macroquest/reference/general/spawn-search/
http://redguides.com/docs/projects/macroquest/reference/top-level-objects/tlo-nearestspawn/

zradius

re targeting:
Should also probably not just try to /target things, first check if there is something to target with spawn then if there is target it

re Delay:
I dont understand your delay? I imagine it would never delay

re casting:
/cast is rather finicky from my exp, I have a thread asking about this on mq2forums
Look into the mq2cast plugin may also want to look at spell_routines.inc in Vanilla or MQ2Cast_Spell_Routines.inc

Something like this (not sure if the spawn is correct, needs to be tested)

Rich (BB code):
    /doevents
 	/if (${Target.ID} != ${Me.ID} && !${Me.Combat} && ${Spawn[npc targetable los radius 75 zradius 50].ID}) 	{	
			/target id ${NearestSpawn[npc targetable los radius 75 zradius 50].ID}
				/delay 3s ${Target.ID}==${NearestSpawn[npc targetable los radius 75 zradius 50].ID}
				/casting "Your Spell" gem1 -maxtries 3
|this delay sucks but if you are not using spell_routines its better than nothing
				/delay 20s ${Cast.Ready}
			}
 
This is awesome thank you. Checking for the spawn and the delay pieces will help with some of the spam I was getting I would think. I will look into the other links you sent as well.


Sent from my iPhone using Tapatalk
 
Question - Basic target macro

Users who are viewing this thread

Back
Top
Cart