Lua functions

AddLootCoin

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

Historical signature: AddLootCoin(Spawn, Amount)

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

Function: AddLootCoin(Spawn, Amount)

Description: Adds coin to the Spawn's loot table for the current instance when they die.

Parameters:

  • Spawn: Spawn - The spawn or entity to add loot coin.
  • Amount: int32 - Amount in copper.

Returns: None.

Checked example

No checked example is published for this function yet. No active script call with the current C++ argument count was found.

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