finish henricus inq dialogues

This commit is contained in:
ErikasKontenis
2022-04-18 15:32:56 +03:00
parent 0ca1c4013c
commit 661759508d
24 changed files with 1319 additions and 47 deletions

View File

@@ -0,0 +1,18 @@
function onKill(creature, target)
local targetMonster = target:getMonster()
if not targetMonster then
return true
end
if targetMonster:getName():lower() ~= 'ungreez' then
return true
end
local player = creature:getPlayer()
if player:getStorageValue(12160) == 18 then
-- The Inquisition Questlog- 'Mission 6: The Demon Ungreez'
player:setStorageValue(12166, 2)
player:setStorageValue(12160, 19)
end
return true
end

View File

@@ -321,6 +321,7 @@ function onLogin(player)
player:registerEvent("PlayerLogout")
player:registerEvent("FirstItems")
player:registerEvent("RegenerateStamina")
player:registerEvent("InquisitionUngreez")
return true
end