dervin13
Active Member
- Joined
- Apr 26, 2008
- Messages
- 459
- Solutions
- 1
- Reaction score
- 28
Hello, can somebody help me to convert this script to tfs 1.0, it's from 1.2 and have some diference in functions...
thanks
Code:
function onKill(creature, target)
if (Monster(target) ~= nil) then
local mt = MonsterType(target:getName())
if mt:useRewardChest() then
local loot = BossLoot:new(target)
if loot then
local corpse = Item(doCreateItem(MonsterType(target:getName()):getCorpseId(), 1, target:getPosition()))
corpse:decay()
target:setDropLoot(false)
loot:updateDamage()
loot:setRewards()
loot:addRewards()
corpse:setAttribute('aid', 21584)
end
end
end
end
thanks