local storage = 2462 -- storage key if have can enter and if dont have dont enter
local newpos = {x=32247, y=33569, z=7} -- New position
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerStorageValue(cid,storage) == 1 then
doTeleportThing(cid,newpos)
doSendMagicEffect(newpos,10)
else
doPlayerSendTextMessage(cid,25,"You need done the quest!")
end
return 1
end