No categories assigned

LUA:SetLootCoin

Revision as of 23:18, 11 September 2013 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: SetLootCoin() = Sets the given spawns loot coins to the given value ==== Syntax ==== SetLootCoins(param1, param2) ==== Parameters ==== ; Required - ''param1'...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

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