• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

2nd promotion error

Benny

Member
Joined
Jul 19, 2008
Messages
560
Reaction score
6
Basically, i have a item which will promote you to a second promotion after royal elite, ect, and since i moved to tfs 0.3.3 it has'nt worked correctly, it will promote you and such but when you relog the promotion will dissapear and will leave you with your old promotion. any ideas? thanks,
 
Code:
function onUse(cid, item, fromPosition, itemEx, toPosition)
 if getPlayerVocation(cid) > 4 then
  doPlayerSetVocation(cid, getPlayerVocation(cid)+4)
  doCreatureSay(cid, "You are now Super Promoted !", TALKTYPE_ORANGE_1)
                    doSendMagicEffect(getPlayerPosition(cid), 0)
                    doSendMagicEffect(getPlayerPosition(cid), 2)
                    doSendMagicEffect(getPlayerPosition(cid), 29)
  doRemoveItem(item.uid, 1)

 else
   doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
 end
end
 
Try using this function instead of setting the player's vocation.
Code:
setPlayerPromotionLevel(cid, 3)

Of course it will only work if your second promotions have fromvoc="" set to the normal promotions.
 
Back
Top