Marilyekon
New Member
- Joined
- Feb 23, 2010
- Messages
- 47
- Reaction score
- 0
Hello! I have a bug that I don't seem to be able to solt. That's why i ask you guys for help. The thing is when i klick on my epic brain 8the item which makes me go to promotion nr 2) I get the promotion. It says that I'm a Epic master Sorcerer. But when i log out and in again, I'm just a master Sorcerer. What do you think that the broblem can be? Her's the promotion script:
And i ofcause I've added it to vocations.xml
PHP:
function onUse(cid, item, fromPosition, itemEx, toPosition)
if getPlayerVocation(cid) == 5 then
doPlayerSetVocation(cid, 9)
doCreatureSay(cid, "You are now a Epic Master Sorcerer!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
elseif getPlayerVocation(cid) == 6 then
doPlayerSetVocation(cid, 10)
doCreatureSay(cid, "You are now a Epic Elder Druid!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
elseif getPlayerVocation(cid) == 7 then
doPlayerSetVocation(cid, 11)
doCreatureSay(cid, "You are now a Epic Royal Paladin!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
elseif getPlayerVocation(cid) == 8 then
doPlayerSetVocation(cid, 12)
doCreatureSay(cid, "You are now a Epic Elite Knight!", TALKTYPE_ORANGE_1)
doRemoveItem(item.uid, 1)
else
doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
end
end