mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-12-12 12:59:47 +01:00
finish henricus inq dialogues
This commit is contained in:
@@ -10,4 +10,6 @@
|
||||
|
||||
<!-- Killing In The Name Of Quest -->
|
||||
<event type="death" name="KillingInTheNameOf" script="killing_in_the_name_of.lua" />
|
||||
|
||||
<event type="kill" name="InquisitionUngreez" script="inquisitionQuestUngreez.lua" />
|
||||
</creaturescripts>
|
||||
|
||||
18
data/creaturescripts/scripts/inquisitionQuestUngreez.lua
Normal file
18
data/creaturescripts/scripts/inquisitionQuestUngreez.lua
Normal 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
|
||||
@@ -321,6 +321,7 @@ function onLogin(player)
|
||||
player:registerEvent("PlayerLogout")
|
||||
player:registerEvent("FirstItems")
|
||||
player:registerEvent("RegenerateStamina")
|
||||
player:registerEvent("InquisitionUngreez")
|
||||
|
||||
return true
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user