No categories assigned

LUA:AddLootCoin

Revision as of 21:53, 10 October 2012 by Jabantiz (talk | contribs) (Created page with "= LUA Functions: AddLootCoin() = Adds coin to the given spawns loot table. ==== Syntax ==== AddLootCoin(param1, param2) ==== Parameters ==== ; Required - ''param1'' (Spawn), '...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

LUA Functions: AddLootCoin()

Adds coin to the given spawns loot table.

Syntax

AddLootCoin(param1, param2)


Parameters

Required - param1 (Spawn), param2 (int32)
param1 is the spawn to add coins to
param2 is the amount of coins to add

Usage

function cast(Caster, Target)
    -- Add an extra gold to the targets loot
    AddLootCoins(Target, 10000)
end

This spell script would cause the target to drop an extra gold.

Notes

100 = 1 silver, 10000 = 1 gold 1000000 = 1 plat