Lua functions

GetItemType

Registered in this checkout as EQ2Emu_lua_GetItemType; implementation found at WorldServer/Lua/LuaFunctions.cpp:9220.

Historical signature: GetItemType(item)

Parameter and behavior details in the historical explanation are under review against the current implementation.

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.