Ending upon zoning

Ech0b0y

Board Necro
Joined
Jun 24, 2006
Messages
445
Reaction score
0
Points
16
What would the line be to end the macro upon zoning?
 
Code:
PLUGIN_API VOID OnZoned(VOID)
{
    PSPAWNINFO pChar = (PSPAWNINFO)pCharSpawn;
    DoCommand(pChar,"/endmacro");
}
 
Code:
PLUGIN_API VOID OnZoned(VOID)
{
    PSPAWNINFO pChar = (PSPAWNINFO)pCharSpawn;
    DoCommand(pChar,"/endmacro");
}

He said in a macro.


I use something like this
Code:
/declare StartZone int outer ${Zone.ID}

Sub Main

/if (${StartZone}!=${Zone.ID}) /endmacro
 
Code:
#Event <eventname> "You have entered #*#"

Sub Event_<eventname>
/end
/return

Replace <eventname> with whatever name you choose.
 
Unless they changed it that event would no longer read. the chat that reads you have entered passes before MQ2 can read it. At least I am pretty sure. Will check wiki later to check my memory.