function onUse(cid, item, fromPosition, target, toPosition, isHotkey)
print("done")
local player = Player(cid)
if not player then
return true
end
local playerPos = Player:getPosition()
local pos1 = Position(33394, 32666, 6)
local pos2 = Position(33395, 32666, 6)
local pos3 = Position(33396, 32666, 6)
if playerPos == pos1 or playerPos == pos2 or playerPos == pos3 then
player:teleportTo(Position(33395, 32668, 6))
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
return true
end
if player:getStorageValue(332202) >= 4 then
player:teleportTo(Position(33395, 32666, 6))
player:getPosition():sendMagicEffect(CONST_ME_TELEPORT)
return true
end
return true
end