function onUse(cid, item, fromPosition, itemEx, toPosition)
local pos = {x=10, y=11, z=7}
local inFight = getCreatureCondition(cid, CONDITION_INFIGHT)
if inFight == FALSE then
doSendMagicEffect(getCreaturePosition(cid), CONST_ME_POFF)
doTeleportThing(cid, pos)
doSendMagicEffect(pos, CONST_ME_TELEPORT)
else
doPlayerSendCancel(cid,"You cannot use this when you\'re in fight!.")
end
return TRUE
end