mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
finish henricus inq dialogues
This commit is contained in:
@@ -42,11 +42,18 @@ function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
player:setStorageValue(12160, 13)
|
||||
player:setStorageValue(12164, 2)
|
||||
|
||||
local doorItem = Tile(doorPosition):getItemById(8697)
|
||||
local doorItem = Tile(doorPosition):getItemById(5126)
|
||||
local doorItem2 = Tile(doorPosition):getItemById(5125)
|
||||
local doorId = 5126
|
||||
if doorItem then
|
||||
doorItem:transform(8696)
|
||||
doorItem:transform(5124)
|
||||
end
|
||||
addEvent(revertItem, 10 * 1000, doorPosition, 8696, 8697)
|
||||
|
||||
if doorItem2 then
|
||||
doorId = 5125
|
||||
doorItem2:transform(5124)
|
||||
end
|
||||
addEvent(revertItem, 10 * 1000, doorPosition, 5124, doorId)
|
||||
return true
|
||||
end
|
||||
|
||||
|
27
data/actions/scripts/inquisition/vampireHunt.lua
Normal file
27
data/actions/scripts/inquisition/vampireHunt.lua
Normal file
@@ -0,0 +1,27 @@
|
||||
local altars = {
|
||||
Position(32778, 31977, 9),
|
||||
Position(32776, 31982, 9),
|
||||
Position(32780, 31982, 9)
|
||||
}
|
||||
|
||||
function onUse(player, item, fromPosition, target, toPosition, isHotkey)
|
||||
if player:getStorageValue(12160) == 8 then
|
||||
player:setStorageValue(12160, 9)
|
||||
player:setStorageValue(12163, 4) -- The Inquisition Questlog- "Mission 3: Vampire Hunt"
|
||||
local k = {}
|
||||
for i = 1, #altars do
|
||||
local tmp = Tile(altars[i]):getItemById(3083)
|
||||
if not tmp then
|
||||
Game.createMonster("The Count", toPosition)
|
||||
return true
|
||||
else
|
||||
k[#k + 1] = tmp
|
||||
end
|
||||
end
|
||||
for i = 1, #k do
|
||||
k[i]:remove()
|
||||
end
|
||||
Game.createMonster("The Weakened Count", toPosition)
|
||||
return true
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user