You are viewing an old version of this page. Return to the latest version.
No categories assigned
LUA:ItemScripts
- Last edited 9 years ago by I need to Update My Profile
Item scripts will give items more uses then just stats. There are currently 8 events that will call the item script, food/drink consumption, destroyed, examined, equipped, proc, removed, unequipped, and used.
Cast
Cast is only used for food and drink when it is consumed, this is where you would cast the buff spell that the food or drink applies
function cast(Item, Spawn) end
Destroyed
Destroyed is called when the player destroys the item
function destroyed(Item, Spawn) end
Examined
Examined is called when the player examines an item
function examined(Item, Spawn) end
Equipped
Equipped is called when the player equips an item
function equipped(Item, Spawn) end
Proc
Proc is called when the item proc is triggered
function proc(Item, Caster, Target, Type) end
Removed
Removed is called when the item is removed from the player
function removed(Item, Spawn) end
Unequipped
Unequipped is called when the player unequips an item
function unequipped(Item, Spawn) end
Used
Used is called when the player uses an item
function used(Item, Spawn) end