Advertisement
Cavitt

Untitled

May 20th, 2012
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local config = {
  2. item = 1234,
  3. mounts = {1,2,3,4,5,6,7,8,9,10}
  4. }
  5. function onUse(cid, item, position, fromPosition)
  6. if isPlayer(cid) then
  7. if getPlayerItemCount(cid, config.item) == 0 then
  8. doCreatureSay(cid, "You don't have the required item!", TALKTYPE_ORANGE_1)
  9. else
  10. doPlayerAddMount(cid, mounts[math.random(1, #mounts)])
  11. doPlayerRemoveItem(cid,config.item,1)
  12. end
  13. end
  14. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement