1
0
EQ2Emu/docs/lua_functions/GetItemID.md

382 B

Function: GetItemID(item)

Description: Get Item ID of the specified Item object.

Parameters:

  • item (Item) - Item object representing item.

Returns: UInt32 value of the item id.

Example:

-- From ItemScripts/Darkheart.lua
function used(Item, Player)
    local item_id = GetItemID(Item)
    CastSpell(Player, SPELLID, SPELL_TIERS[item_id])
end