You are viewing an old version of this page. Return to the latest version.
Version of 21:53, 10 October 2012 by I need to Update My Profile
No categories assigned
LUA:AddLootCoin
- Last edited 4 years ago by Vlash Nytefall
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