• 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 - How do you use the "next" spawn search?

grundy923

Member
How exactly am I meant to use "next" in a spawn search?

I'm running this command:
Code:
/echo ${Spawn[npc goblin]}
output is "an_ice_goblin44"
mq2nav can't figure out how to get to certain parts of permafrost, this goblin is in such a location, so I want to skip it and find the next goblin
Code:
/echo ${Spawn[npc goblin next]}
again is the same "an_ice_goblin44". If I try just
Code:
/echo ${Spawn[next]}
it gets myself. I add the npc goblin part back in, i still just keep getting an_ice_goblin44. With or without next I just keep getting the same goblin and with out the "npc goblin" search I just get myself. I can't figure out how to get it to return the next goblin.
 
Last edited:
Had to go check the C++. 'next' is used to find the first nearest spawn to your target only it looks like. So if you target something and run
INI:
/echo ${Spawn[next]}
you can see its behavior.
Interesting... that's not at all what I was expecting based on the wiki explanation: https://www.redguides.com/docs/projects/macroquest/reference/general/spawn-search/
Next spawn matching the search criteria
That looks like it should just give me a different npc that also matches the search criteria
 
I think the confusion is that it is meant to be used with `/target next` and `/target prev` commands. Those are spawn searches but not really meant to be used in a ${Spawn[next]} way. Documentation might need an update.

^ What redbot said.
 
I saw people recommending not to target mobs that you can't see, so I was hoping to be able to use "next" and store that spawn id in a variable, instead of having to target it. Is there a way to do that?
 
I saw people recommending not to target mobs that you can't see, so I was hoping to be able to use "next" and store that spawn id in a variable, instead of having to target it. Is there a way to do that?

use NearestSpawn and cycle through them that way. the first parameter is an index. Some posted an example up above.
 
Question - How do you use the "next" spawn search?

Users who are viewing this thread

Back
Top
Cart