function onStepIn(cid, item, pos, fromPos)
if not isPlayer(cid) then return doTeleportThing(cid, fromPos) end
if getPlayerStorageValue(cid, VALUE) > 0 then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "You cannot jump in here!")
doTeleportThing(cid, fromPos)
return false
end
local position = {x = 343, y = 155, z = 7} -- position player teleported
doTeleportThing(cid, position)
doSendMagicEffect(position, CONST_ME_TELEPORT)
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT,"Welcome to this area!")
return true
end