Historical signature: GetItemType(item)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GetItemType(item)
Description:
Gets the defined type of the item described in the database. See https://github.com/emagi/eq2emu/blob/main/docs/data_types/item_types.md for item types.
Parameters:
item (Item) - Item object representing item.
Returns: UInt32 value of the item type.
Checked example
Active call in a local runtime Lua script. Argument count matches current fixed C++ readers. This is a contextual call pattern, not a tested standalone script.
if not item or GetItemType(item) ~= 4 then
Evidence: server/Spells/Fighter/Crusader/UnyieldingAdvance.lua:11; binding EQ2Emu_lua_GetItemType.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.