E Ech0b0y Board Necro Joined Jun 24, 2006 Messages 445 Reaction score 0 Points 16 Dec 30, 2007 #1 What would the line be to end the macro upon zoning?
clopchops New member Joined Sep 6, 2007 Messages 90 Reaction score 0 Points 0 Dec 30, 2007 #2 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"); }
JimJohnson Forum Jackass Joined Jul 12, 2006 Messages 8,528 Reaction score 11 Points 38 Dec 30, 2007 #3 clopchops said: Code: PLUGIN_API VOID OnZoned(VOID) { PSPAWNINFO pChar = (PSPAWNINFO)pCharSpawn; DoCommand(pChar,"/endmacro"); } Click to expand... He said in a macro. I use something like this Code: /declare StartZone int outer ${Zone.ID} Sub Main /if (${StartZone}!=${Zone.ID}) /endmacro
clopchops said: Code: PLUGIN_API VOID OnZoned(VOID) { PSPAWNINFO pChar = (PSPAWNINFO)pCharSpawn; DoCommand(pChar,"/endmacro"); } Click to expand... He said in a macro. I use something like this Code: /declare StartZone int outer ${Zone.ID} Sub Main /if (${StartZone}!=${Zone.ID}) /endmacro
K kryologik Member Joined Jul 3, 2006 Messages 157 Reaction score 0 Points 16 Dec 31, 2007 #4 Code: #Event <eventname> "You have entered #*#" Sub Event_<eventname> /end /return Replace <eventname> with whatever name you choose.
Code: #Event <eventname> "You have entered #*#" Sub Event_<eventname> /end /return Replace <eventname> with whatever name you choose.
JimJohnson Forum Jackass Joined Jul 12, 2006 Messages 8,528 Reaction score 11 Points 38 Dec 31, 2007 #5 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.
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.