Lua functions

HasPendingLoot

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

Historical signature: HasPendingLoot(entity, player)

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

Function: HasPendingLoot(entity, player)

Description: Identifies if the Player has pending loot with the targetted Entity (NPC).

Parameters:

  • entity (int32) - Integer value entity.
  • player (Spawn) - Spawn object representing player.

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 HasPendingLoot(NPC, Player) then

Evidence: server/SpawnScripts/FarJourneyFreeport/atreasurechest.lua:26; binding EQ2Emu_lua_HasPendingLoot.

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