No categories assigned

LUA:SetLootCoin

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