SOLVED
TFS 1.2
custom_droploot.lua:
As usual, any help is greatly appreciated!
TFS 1.2
custom_droploot.lua:
Code:
local itemDeathDrop = ITEM_PLATINUM_COIN
local itemAmount = 10
function onDeath(player, corpse, killer, mostDamage, unjustified, mostDamage_unjustified)
if getPlayerFlagValue(player, PlayerFlag_NotGenerateLoot) or player:getVocation():getId() == VOCATION_NONE then
return true
end
local master = killer:getMaster()
if killer:isPlayer() then
killer:addItem(itemDeathDrop, itemAmount)
elseif killer:isMonster() and master:isPlayer() then
master:addItem(itemDeathDrop, itemAmount)
end
return true
end
I have no idea why it won't work.<event type="death" name="CustomDropLoot" script="custom/customdroploot.lua" />
As usual, any help is greatly appreciated!
Last edited: