• 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

Zone Check

Devlin

Active member
Heya Guys,

Short Request.. Doesn't have to me much


If anyone could provide me or point me a link/syntax of what would you do to Zone check in a macro, That would be awesome. Thanks
 
/echo ${Zone.ID} will tell you the ID of the zone you're in

Rich (BB code):
/if (${Zone.ID}==31)
/end
/camp desktop
/quit
If you're in zone #31 (LS I think) it will end, camp, and quit out of the game. You can also do it like
Rich (BB code):
/if (${Zone.ID}!==31)
/end
/camp desktop
/quit
If you're in any zone besides #31 it will end, camp, and quit out of the game.

plink
 
http://www.redguides.com/community/showthread.php?t=11493

You could modify this to work and call something based on current zone name as well. Hope it helps.

HardOne said:
For those wanting an even to be called after zoning, the format has changed (as most of you may know)

An event will no longer trigger on
Rich (BB code):
#Event EnteredNewZone "You have entered #1#."

If order to work around this we need to do a couple things.

In your Sub Main place the following code
Rich (BB code):
Sub Main
	/declare currentZone			int outer ${Zone.ID}

then in your Macro's loop add this:
Rich (BB code):
	:loop
		/if (${Zone.ID}!=${currentZone}) /call Event_EnteredNewZone

Once that is done, in your entering zone event you need at a minimum the following (look at the bold stuff.) (Note: the event is commented out with a | since it won't be called on zoning, but I left the line there for easy of recognition)
Rich (BB code):
|#Event EnteredNewZone "You have entered #1#."
Sub Event_EnteredNewZone(string Line, string ZoneName)
	/echo entered zone ${Zone.Name}
	/varset currentZone ${Zone.ID}
/return
 
Zone Check

Users who are viewing this thread

Back
Top
Cart