AddCoin(Spawn: Player, Int32: Amount)
Pre-Requisite(s)
- None
Parameter(s)
Spawn: Player - Spawn LUA Pointer of Player type only.
Int32: Amount - Amount of coins to add to the player (unsigned integer).
Return(s)
- None
Example(s)
– Taken from SpawnScripts/AbandonedLabs/Alia.lua
function hailed(NPC, Spawn)
if IsPlayer(Spawn) then
AddCoin(Spawn, 10) – adds 10 copper
Say(NPC, "Here have some copper")
end
end
Result
Additional Notes