Historical signature: GiveLoot(entity, player, coins, item_id)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: GiveLoot(entity, player, coins, item_id)
Description:
Provides the player pending loot items from the entity(Spawn) with item_id that allows multiple comma delimited entries. The coins will be added to the entities lootable coin.
Parameters:
entity (Spawn) - Spawn object representing entity.
player (Spawn) - Spawn object representing player.
coins (uint32) - Integer value coins.
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.
GiveLoot(chest, Player, 0, 20902)
Evidence: server/Quests/FarJourneyFreeport/TasksaboardtheFarJourney.lua:128; binding EQ2Emu_lua_GiveLoot.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.