From 76af39e98691693ba243bb6e52098ccbf61cf038 Mon Sep 17 00:00:00 2001 From: Alex Date: Thu, 20 Jun 2013 13:39:36 -0700 Subject: [PATCH] Updated Lua Parser (markdown) --- Lua-Parser.md | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/Lua-Parser.md b/Lua-Parser.md index c163a93..09917aa 100644 --- a/Lua-Parser.md +++ b/Lua-Parser.md @@ -775,6 +775,29 @@ Note: Encounter scripts cannot properly catch EVENT_COMMAND or EVENT_TRADE unles > } > ``` +* event_weapon_proc +> Triggered when a client procs when using this item. +> Passes an event table as an argument: +> ``` +> { +> ItemInst self; +> Client owner; +> Spell spell; +> } +> ``` +> Returning a non-zero value from this function will cause the proc spell to not cast at all. + +* event_loot +> Triggered when a client loots this item from a corpse +> Passes an event table as an argument: +> ``` +> { +> ItemInst self; +> Client owner; +> Corpse corpse; +> } +> ``` + ### Spell Events