Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function onUse(cid, item, fromPosition, itemEx, toPosition)
- if(getPlayerLevel(cid) >= 500)
- if(getPlayerPromotionLevel(cid) == 0) then
- doPlayerSetPromotionLevel(cid, 1)
- doCreatureSay(cid, "You are now a Super Promoted!", TALKTYPE_MONSTER)
- doRemoveItem(item.uid, 1)
- else
- doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
- end
- else
- doPlayerSendCancel(cid,"You need to be atleast level 500 to use this item.")
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement