mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-10-13 22:34:53 +02:00
finish serpentine tower event and quest
This commit is contained in:
16
data/movements/scripts/serpentine_tower/final_tile.lua
Normal file
16
data/movements/scripts/serpentine_tower/final_tile.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getOutfit().lookType ~= 17 then
|
||||
position.y = position.y + 1
|
||||
player:teleportTo(position)
|
||||
Game.sendMagicEffect(player:getPosition(), CONST_ME_ENERGYHIT)
|
||||
player:addHealth(-20)
|
||||
return true
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
16
data/movements/scripts/serpentine_tower/humble_one_first.lua
Normal file
16
data/movements/scripts/serpentine_tower/humble_one_first.lua
Normal file
@@ -0,0 +1,16 @@
|
||||
function onStepIn(creature, item, position, fromPosition)
|
||||
local player = creature:getPlayer()
|
||||
if not player then
|
||||
return true
|
||||
end
|
||||
|
||||
if player:getStorageValue(17605) ~= 1 and Game.isItemThere({x = 33145, y = 32870, z = 8}, 3246) then
|
||||
position.y = position.y - 5
|
||||
player:teleportTo(position)
|
||||
Game.sendMagicEffect(player:getPosition(), CONST_ME_HITAREA)
|
||||
Position(33145, 32870, 8):sendMonsterSay("Only the humble can touch the boots!")
|
||||
return true
|
||||
end
|
||||
|
||||
return true
|
||||
end
|
@@ -0,0 +1,5 @@
|
||||
function onRemoveItem(item, tileitem, position)
|
||||
if item:getId() == 3246 then
|
||||
Position(33145, 32870, 8):sendMonsterSay("Ancient Eye: Be Greeted The Humble One!")
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user