• 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

/gate on radius or on zone in

mike23

New member
I was wondering if anyone might have an idea on how to do this, this being:

create a macro that will /gate your character when another PC enters a zone or possibly when they get within a certain radius of you (with exception for group members)
 
Well you could have you macro /who
Then in the line that says "there is 6 players in ..... wherever you are" have an event that looks for that.
From that have the macro /who every 1 min or 5 or whatever you feel safe with

Then have a line of code that checks the event and if players is > than the original number then have a sub that /gates.
 
I would think it would be far easier to use the ${SpawnCount} or ${NearestSpawn} top level objects. I may not have the verbage 100% correct, but it should look something like this:

/if (${NearestSpawn[PC].Distance} <= 200) /gate

-or-

/if (${SpawnCount[PC]} > 1) /gate

If that doesnt work, do a little reading on ${SpawnCount} and/or ${NearestSpawn} in the manual, the answers you want are there.
 
Tone said:
/if (${Spawn[Name].ID}) /gate (for in zone)
/if (${Spawn[pc Name radius #youwant].ID}) /gate (for radius)

That would work if he was looking to gate when a certain person zones in or comes near him. I think he is looking for a check for use in an AFK macro, to gate if any person enters zone or comes within a radius of him. That said, the ${Spawn[pc radius xxx].ID} would probably work better than the ${NearestSpawn} TLO for the radius check, but I think the ${SpawnCount[pc]} TLO is the most effective for the player in zone check.
 
Ok even easier :p
Make an alert list at the top of your macro /alert add 2 name (friendly toons)
you can add as many as you want to your alert list. /alert add 2 ${Me} is a must for this setup.
/if (${Spawn[pc noalert 2 radius some#].ID}) /gate

This way you don't gate when one of your bots, friends, or self is in zone/area :P
 
/gate on radius or on zone in

Users who are viewing this thread

Back
Top
Cart