Difference between revisions of "LUA:SetLootCoin"
(Created page with "= LUA Functions: SetLootCoin() = Sets the given spawns loot coins to the given value ==== Syntax ==== SetLootCoins(param1, param2) ==== Parameters ==== ; Required - ''param1'...") |
(No difference)
|
Latest revision as of 23:18, 11 September 2013
LUA Functions: SetLootCoin()
Sets the given spawns loot coins to the given value
Syntax
SetLootCoins(param1, param2)
Parameters
- Required - param1 (Spawn), param2 (int32)
- param1 is the spawn who's loot we want to modify
- param2 is the amount of coins we want the loot to have
Usage
function hailed(NPC, Spawn)
SetLootCoins(NPC, 10000)
end
When the NPC is hailed it will set its loot coins to 1 gold