No categories assigned

LUA:AddLootCoin

Revision as of 12:00, 30 January 2021 by Cynnar (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)


LUA:AllFunctions - AddLootCoin

Return to: LUA:AllFunctions | Tutorials | Portal | Forum | Project Manager | Bug Tracker


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


Example

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