Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local ITEMID_OF_VIPTOKEN = 2159
- local COUNT_OF_ITEM = 20
- function onUse(cid, item, frompos, item2, topos)
- local ret = doPlayerRemoveItem(cid, ITEMID_OF_VIPTOKEN, COUNT_OF_ITEM)
- if(ret) and item.uid == 2171 then
- queststatus = getPlayerStorageValue(cid,378)
- if(not doorEnter(cid, item, toPosition)) then return false end
- else
- doPlayerSendTextMessage(cid, MESSAGE_INFO_DESCR, "You need atleast 100 donation coins to enter this spawn.")
- end
- if queststatus == -1 or queststatus == 0 then
- doPlayerSendTextMessage(cid,19,"Now you can mount id 11")
- item_uid = doPlayerAddMount(cid, 11)
- setPlayerStorageValue(cid,378,1)
- else
- doPlayerSendTextMessage(cid,19,"You already has this mount!")
- end
- else
- return 0
- end
- return 1
- end
Add Comment
Please, Sign In to add comment