xGustadoIts
New Member
- Joined
- Apr 13, 2015
- Messages
- 50
- Reaction score
- 0
Hello,
I am using it and when I summon ' utevo res "fire elemental" ' a monster and it kills the boss server crash
I have a bad English, using translator sorry
Can anybody help me?
I am using it and when I summon ' utevo res "fire elemental" ' a monster and it kills the boss server crash
I have a bad English, using translator sorry
Can anybody help me?
Code:
function onKill(cid, target)
target = Monster(target)
if (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
return true
end