Lua functions

SetItemCount

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

Historical signature: SetItemCount(item, owner, new_count)

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

Function: SetItemCount(item, owner, new_count)

Description: Set's the item count of the Item object. Only applicable to Player's.

Parameters:

  • item (Item) - Item object representing item.
  • owner (Spawn) - Spawn object representing owner.
  • new_count (uint32) - Quantity new_count.

Returns: None.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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