local vocations = (1,4)
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVocation(cid) == vocations then
if getPlayerVocation(cid) == 1 then
setPlayerVocation(cid) == 5
setPlayerStorageValue(cid,3547,1)
doSendMagicEffect(getThingPos(cid), 31)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted from a sorcerer to a master sorcerer!")
end
if getPlayerVocation(cid) == 2 then
setPlayerVocation(cid) == 6
setPlayerStorageValue(cid,3547,1)
doSendMagicEffect(getThingPos(cid), 31)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted from a druid to an elder druid!")
end
if getPlayerVocation(cid) == 3 then
setPlayerVocation(cid) == 7
setPlayerStorageValue(cid,3547,1)
doSendMagicEffect(getThingPos(cid), 31)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted from a paladin to a royal paladin!")
end
if getPlayerVocation(cid) == 4 then
setPlayerVocation(cid) == 8
setPlayerStorageValue(cid,3547,1)
doSendMagicEffect(getThingPos(cid), 31)
doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You have been promoted from a knight to an elite knight!")
end
end
return TRUE
end