function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified) if creature:isMonster() and creature:getName() == "Kanigher" or creature:isMonster() and creature:getName() == "Ross" or creature:isMonster() and creature:getName() == "Towncryer" or creature:isMonster() and creature:getName() == "Villauba" then local player = creature:getMaster() if player then if player:getStorageValue(_QUESTLOG[166].UID_01) == 02 then player:setStorageValue(10993, nil) player:setStorageValue(_QUESTLOG[166].UID_01, 01) player:sendTextMessage(MESSAGE_STATUS_WARNING, "[ MISSÃO FRACASSADA ]\nVocê deixou seu companheiro de equipe morrer.") player:teleportTo({x=3651, y=1707, z=07}) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) elseif player:getStorageValue(_QUESTLOG[167].UID_01) == 03 then player:setStorageValue(_QUESTLOG[167].UID_01, 02) player:sendTextMessage(MESSAGE_STATUS_WARNING, "[ MISSÃO FRACASSADA ]\nVocê deixou seu companheiro de equipe morrer.") player:teleportTo({x=3562, y=953, z=07}) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) elseif player:getStorageValue(_QUESTLOG[169].UID_01) > 01 and player:getStorageValue(_QUESTLOG[169].UID_01) < 100 then player:setStorageValue(_QUESTLOG[169].UID_01, 01) player:sendTextMessage(MESSAGE_STATUS_WARNING, "[ MISSÃO FRACASSADA ]\nVocê deixou seu companheiro de equipe morrer.") player:teleportTo({x=3651, y=1707, z=07}) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) elseif player:getStorageValue(_QUESTLOG[198].UID_01) == 02 then player:setStorageValue(_QUESTLOG[198].UID_01, 01) player:sendTextMessage(MESSAGE_STATUS_WARNING, "[ MISSÃO FRACASSADA ]\nVocê deixou Towncryer morrer em combate.") player:teleportTo({x=3862, y=1762, z=06}) player:getPosition():sendMagicEffect(CONST_ME_TELEPORT) end doBackpack(player, 12) player:sendCancelMessage("@LoadQuestWindows") end end return true end