Guest User

Untitled

a guest
Jan 21st, 2018
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.73 KB | None | 0 0
  1. local ITEMID_OF_VIPTOKEN = 2159
  2. local COUNT_OF_ITEM = 20
  3. function onUse(cid, item, frompos, item2, topos)
  4. local ret = doPlayerRemoveItem(cid, ITEMID_OF_VIPTOKEN, COUNT_OF_ITEM)
  5. if(ret) and item.uid == 2171 then
  6. queststatus = getPlayerStorageValue(cid,378)
  7. if(not doorEnter(cid, item, toPosition)) then return false end
  8.             else
  9.                 doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need atleast 100 donation coins to enter this spawn.")
  10.                 end
  11. if queststatus == -1 or queststatus == 0 then
  12. doPlayerSendTextMessage(cid,19,"Now you can mount id 11")
  13. item_uid = doPlayerAddMount(cid, 11)
  14. setPlayerStorageValue(cid,378,1)
  15.  
  16. else
  17. doPlayerSendTextMessage(cid,19,"You already has this mount!")
  18. end
  19. else
  20. return 0
  21. end
  22. return 1
  23. end
Add Comment
Please, Sign In to add comment