sentinel.lua

main 42 lines · 2 KB Raw
Alex Alex Commit Server upload 18/10/2026 23:38
1function onDeath(creature, corpse, killer, mostDamageKiller, unjustified, mostDamageUnjustified)
2 if creature:isMonster() and creature:getName() == "Kanigher"
3 or creature:isMonster() and creature:getName() == "Ross"
4 or creature:isMonster() and creature:getName() == "Towncryer"
5 or creature:isMonster() and creature:getName() == "Villauba" then
6
7 local player = creature:getMaster()
8 if player then
9 if player:getStorageValue(_QUESTLOG[166].UID_01) == 02 then
10 player:setStorageValue(10993, nil)
11 player:setStorageValue(_QUESTLOG[166].UID_01, 01)
12
13
14 player:teleportTo({x=3651, y=1707, z=07})
15 player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
16 elseif player:getStorageValue(_QUESTLOG[167].UID_01) == 03 then
17 player:setStorageValue(_QUESTLOG[167].UID_01, 02)
18
19
20 player:teleportTo({x=3562, y=953, z=07})
21 player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
22 elseif player:getStorageValue(_QUESTLOG[169].UID_01) > 01 and player:getStorageValue(_QUESTLOG[169].UID_01) < 100 then
23 player:setStorageValue(_QUESTLOG[169].UID_01, 01)
24
25
26 player:teleportTo({x=3651, y=1707, z=07})
27 player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
28 elseif player:getStorageValue(_QUESTLOG[198].UID_01) == 02 then
29 player:setStorageValue(_QUESTLOG[198].UID_01, 01)
30
31
32 player:teleportTo({x=3862, y=1762, z=06})
33 player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
34 end
35
36 doBackpack(player, 12)
37 player:sendCancelMessage("@LoadQuestWindows")
38 end
39 end
40 return true
41end
42
Top