No categories assigned
LUA:GetLootCoin
- Last edited 9 years ago by I need to Update My Profile
LUA - GetLootCoin
Return to: LUA | Tutorials | Portal | Forum | Project Manager | Bug Tracker
LUA Functions: GetLootCoin()
Gets the given spawns loot coins
Syntax
var = GetLootCoin(param1)
Parameters
- Required - param1 (Spawn)
- param1 is the spawn who's loot coins we want to get
Returns
- int32
- The amount of loot coins
Usage
function hailed(NPC, Spawn)
local coins = GetLootCoin(NPC)
Say(NPC, "I have " .. coins .. "coins")
end
When the NPC is hailed it will Say() how many loot coins it has