function onUse(cid, item, fromPosition, itemEx, toPosition)
local promoteablevocs = {4, 5, 6, 7} -- IDs of the vocs that can be promoted
if(isInArray(promoteablevocs, getPlayerVocation(cid)) == true then
doPlayerSetVocation(cid, getPromotedVocation(getPlayerVocation(cid)))
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You are now promoted.")
else
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You can not be promoted right now.")
end
end