function onUse(cid, item, fromPosition, itemEx, toPosition)
if (not (hasCondition(cid, CONDITION_INFIGHT))) then
if (getPlayerSkullEnd(cid) > 0) then
doPlayerSetSkullEnd(cid, 0, getPlayerSkullType(cid))
doCreatureSetSkullType(cid, SKULL_NONE)
doSendMagicEffect(toPosition, CONST_ME_MAGIC_GREEN)
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "Now, you\'re free from frags.")
doRemoveItem(item.uid, 1)
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot use this item while have 0 frag time.")
end
else
doPlayerSendTextMessage(cid, MESSAGE_STATUS_CONSOLE_BLUE, "You cannot use this item while have fight status.")
end
return TRUE
end