From d29ba6fe55d54de2daee95aab9e7ee461b278086 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 7 Jun 2013 18:57:30 -0700 Subject: [PATCH] Updated Lua Parser (markdown) --- Lua-Parser.md | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Lua-Parser.md b/Lua-Parser.md index 32ce182..3b8ce19 100644 --- a/Lua-Parser.md +++ b/Lua-Parser.md @@ -90,6 +90,13 @@ Note: Encounter scripts cannot properly catch EVENT_COMMAND or EVENT_TRADE unles ### Events Quest scripts are event based, the following events are currently responded to by the Lua parser: + +All event functions are passed one argument: an event table. +For NPCs the table will always have 'self' as the npc. +For Players the table will always have 'self' as the client. +For Items the table will always have 'self' as the item and 'owner' as the owner of the item. +For Spells the table will always have 'self' as the spell. + * event_say * event_trade * event_death