Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.46 KB | None | 0 0
  1. function onUse(cid, item, fromPosition, itemEx, toPosition)
  2.     if(getPlayerLevel(cid) >= 500)
  3.         if(getPlayerPromotionLevel(cid) == 0) then
  4.             doPlayerSetPromotionLevel(cid, 1)
  5.             doCreatureSay(cid, "You are now a Super Promoted!", TALKTYPE_MONSTER)
  6.             doRemoveItem(item.uid, 1)
  7.         else
  8.             doPlayerSendCancel(cid,"You need to be promoted in order to use this item.")
  9.         end
  10.     else
  11.         doPlayerSendCancel(cid,"You need to be atleast level 500 to use this item.")
  12.     end
  13. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement