Lua functions

RemoveLootItem

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

Historical signature: RemoveLootItem(spawn, item_id)

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

Function: RemoveLootItem(spawn, item_id)

Description: Removes a loot item from the Spawn(NPC).

Parameters:

  • spawn (Spawn) - Spawn object representing spawn.
  • item_id (uint32) - Integer value item_id.

Returns: None.

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.

RemoveLootItem(NPC, 1285)

Evidence: server/SpawnScripts/Blackburrow/aSabertoothminer.lua:29; binding EQ2Emu_lua_RemoveLootItem.

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