function onUse(cid, item, fromPosition, itemEx, toPosition)
if hasCondition(cid, CONDITION_INFIGHT) == FALSE then
local telePos = {x=149 , y=388 , z=7}
doTeleportThing(cid, telePos)
doSendMagicEffect(getPlayerPosition(cid), 10)
doSendMagicEffect(telePos, 10)
doPlayerSendTextMessage(cid, 22, "You got teleported!")
else
doPlayerSendTextMessage(cid, 22, "You can not teleport while in fight!")
end
return TRUE
end