finish shatted isles quest

This commit is contained in:
ErikasKontenis
2019-12-12 15:47:57 +02:00
parent 2169339d84
commit e415a533a4
25 changed files with 440 additions and 4 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:getStorageValue(17509) < 5 then
position:sendMagicEffect(CONST_ME_ENERGYHIT)
position.x = position.x + 2
player:teleportTo(position)
return true
end
return true
end