Lua functions

AddCoin

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

Historical signature: AddCoin(Player, Amount)

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

Function: AddCoin(Player, Amount)

Description: Provide the Amount of coin provided in copper which will translate the value into copper, silver, gold, platinum respectively to the Player.

Parameters:

  • Player: Spawn - The Spawn (Player) to provide the coin.
  • Amount: UInt32 - Amount in copper to provide 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.

AddCoin(Spawn, 10)

Evidence: server/SpawnScripts/AbandonedLabs/Alia.lua:15; binding EQ2Emu_lua_AddCoin.

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