Function: HasPendingLoot(entity, player)
Description: Identifies if the Player has pending loot with the targetted Entity (NPC).
Parameters:
entity(int32) - Integer valueentity.player(Spawn) - Spawn object representingplayer.
Returns: None.
HasPendingLootRegistered 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.
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.
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.