Lua functions

GetItemCount

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

Historical signature: GetItemCount(item)

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

Function: GetItemCount(item)

Description: Get's the item count of the specified Item object.

Parameters:

  • item (Item) - Item object representing item.

Returns: UInt32 value of the quantity/count available in the current item stack.

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 GetItemCount(Item) > 1 then

Evidence: server/ItemScripts/MarkedCards.lua:19; binding EQ2Emu_lua_GetItemCount.

Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.