Historical signature: HasCoin(Spawn, Value)
Parameter and behavior details in the historical explanation are under review against the current implementation.
Function: HasCoin(Spawn, Value)
Description: Checks if a player (Spawn) has at least a certain amount of coin (Value in copper) on them.
Parameters:
Spawn: Spawn โ The player whose coin purse to check.
Value: Int32 โ The amount of coin (in copper units) to check for.
Returns: Boolean โ true (1) if the player has at least that amount of coin; false (0) if they do not have enough money.
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 HasCoin(Spawn, 400) then
Evidence: server/SpawnScripts/EastFreeport/Rumdum.lua:84; binding EQ2Emu_lua_HasCoin.
Current registration: WorldServer/Lua/LuaInterface.cpp. Historical explanation: EQ2Emu Lua documentation.