mirror of
https://github.com/ErikasKontenis/SabrehavenServer.git
synced 2025-05-02 10:39:20 +02:00
18 lines
575 B
Lua
18 lines
575 B
Lua
function onStepIn(creature, item, position, fromPosition)
|
|
local player = creature:getPlayer()
|
|
if not player then
|
|
return true
|
|
end
|
|
|
|
if 1 == 1 then
|
|
-- TODO: if player:getStorageValue(Storage.PitsOfInferno.Pumin) > 8 then
|
|
player:teleportTo(Position(32786, 32308, 15))
|
|
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
|
|
else
|
|
player:teleportTo(fromPosition)
|
|
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
|
|
player:sendTextMessage(MESSAGE_EVENT_ADVANCE, 'To enter Pumin\'s domain you must gain permission from the bureaucrats.')
|
|
end
|
|
return true
|
|
end
|