Lua functions

HasLootItem

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

Historical signature: HasLootItem(spawn, item_id)

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

Function: HasLootItem(spawn, item_id)

Description: Identifies if the specified spawn has the item_id in it's loot drop table.

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.

if HasLootItem(rat, 11615) == false then

Evidence: server/Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua:151; binding EQ2Emu_lua_HasLootItem.

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