From 9087d192a2541e69f2792ba36925d1d0ad829af4 Mon Sep 17 00:00:00 2001 From: Alex Date: Wed, 19 Jun 2013 18:59:08 -0700 Subject: [PATCH] Updated Lua Parser (markdown) --- Lua-Parser.md | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 53 insertions(+), 1 deletion(-) diff --git a/Lua-Parser.md b/Lua-Parser.md index 16e9c4c..316f7bd 100644 --- a/Lua-Parser.md +++ b/Lua-Parser.md @@ -618,12 +618,55 @@ Note: Encounter scripts cannot properly catch EVENT_COMMAND or EVENT_TRADE unles > ``` * event_discover_item +> Triggered when a client discovers an item (eg: the item is first seen on the server by this player). +> Passes an event table as an argument: +> ``` +> { +> Client self; +> Item item; +> } +> ``` + * event_disconnect +> Triggered when a client disconnects from the server. +> Passes an event table as an argument: +> ``` +> { +> Client self; +> } +> ``` + * event_connect +> Triggered when a client zones in for the first time from world. +> Passes an event table as an argument: +> ``` +> { +> Client self; +> } +> ``` + * event_duel_win +> Triggered when a client wins a duel. +> Passes an event table as an argument: +> ``` +> { +> Client self; +> Client other; +> } +> ``` + * event_duel_lose +> Triggered when a client loses a duel. +> Passes an event table as an argument: +> ``` +> { +> Client self; +> Client other; +> } +> ``` + * event_command -> Triggered when a client enters a #command +> Triggered when a client enters a #command. > Passes an event table as an argument: > ``` > { @@ -635,6 +678,15 @@ Note: Encounter scripts cannot properly catch EVENT_COMMAND or EVENT_TRADE unles > Returning a non-zero value will suppress the command not found message * event_feign_death +> Triggered when a client feigns death. +> Passes an event table as an argument: +> ``` +> { +> Client self; +> Mob other; +> } +> ``` +> If a non-zero value is returned from this function then the feign death is canceled in the same way it is on the NPC version of event_feign_death. ### Item Events