finish serpentine tower event and quest

This commit is contained in:
ErikasKontenis
2020-03-20 00:17:07 +02:00
parent d9686f1d07
commit 0a680a4c0b
84 changed files with 4845 additions and 28 deletions

View 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