• You've discovered RedGuides 📕 an EverQuest multi-boxing community 🛡️🧙🗡️. We want you to play several EQ characters at once, come join us and say hello! 👋
  • IS THIS SITE UGLY? Change the look. To dismiss this notice, click the X --->

Zone Check (1 Viewer)

Devlin

Active member
Joined
May 22, 2006
RedCents
130¢
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