Zone = ????

Fammel

New member
Joined
Apr 1, 2008
Messages
13
Reaction score
0
Points
0
Okay, I have been playing with some of the macros to learn this. I have editted one of hte macros and started playing around with it, however I am at a loss. Basically what I want is to have the macro state that when I zone to the guild lobby it exits, right now it is whenever I zone. I can see in line 7 where it does the zone check, but how to I get it to be = Guild Lobby?

any suggestions?

#event Died "#*#You have entered#*#"

sub Main
/declare zonecheck int outer ${Zone.ID}
/echo You are not dead
:main_loop
/if (${zonecheck} != ${Zone.ID}) /call Event_Died
/delay 0
/goto :main_loop
/return

sub Event_Died
/varset zonecheck ${Zone.ID}
/sit
/delay 10s
/exit
/endmacro
/return
 
its checking to see if the zone changed. It saves the current zone id, then checks again to see if its still the same id.
 
I think you need to have it as /if (${Zone.ID.Equal[GuildLobby]})
 
Thought zone ID was done with the zone number, not name?
 
for the guild lobby;

${Zone.ID} = 344
${Zone} = Guild Lobby
${Zone.ShortName} = GuildLobby

checking for any of these should get you your result.
 
Here is another snippet I use in most of my macros:

/if (${GameState.Equal[CHARSELECT]}) /end

That is another type of "death" event, in a manner. This can easily happen if you have multiple characters and forget to end the current macro prior to camping to switch to the other.