From 22e0692710c9c1667c459fa2e97d1ff8f34e5ff3 Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 21 Jun 2013 13:59:47 -0700 Subject: [PATCH] Updated Lua Parser (markdown) --- Lua-Parser.md | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) diff --git a/Lua-Parser.md b/Lua-Parser.md index 4aa54d6..ab96ff5 100644 --- a/Lua-Parser.md +++ b/Lua-Parser.md @@ -743,6 +743,7 @@ Note: Encounter scripts cannot properly catch EVENT_COMMAND or EVENT_TRADE unles > Integer slot_id; > } > ``` +> Returning a non-zero value from this function will cause the spell effect attached to the clicky item to not trigger. * event_item_tick > Triggered by a timer every 10 seconds randomly (driven by a db table). @@ -799,6 +800,50 @@ Note: Encounter scripts cannot properly catch EVENT_COMMAND or EVENT_TRADE unles > } > ``` +* event_augment_item +> Triggered when a client augments this item. +> Passes an event table as an argument: +> ``` +> { +> ItemInst self; +> Client owner; +> ItemInst aug; +> } +> ``` + +* event_unaugment_item +> Triggered when a client unaugments this item. +> Passes an event table as an argument: +> ``` +> { +> ItemInst self; +> Client owner; +> ItemInst aug; +> } +> ``` + +* event_augment_insert +> Triggered when a client inserts this item into another as an augment. +> Passes an event table as an argument: +> ``` +> { +> ItemInst self; +> Client owner; +> ItemInst item; +> } +> ``` + +* event_augment_remove +> Triggered when a client inserts this item into another as an augment. +> Passes an event table as an argument: +> ``` +> { +> ItemInst self; +> Client owner; +> ItemInst item; +> } +> ``` + ### Spell Events