Advertisement
Skymagnum

Untitled

May 19th, 2013
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.66 KB | None | 0 0
  1. function onUse(cid, item, frompos, item2, topos)
  2.  
  3.     local vocations = {
  4.         [1] = {7902, 7897, 7896, 7892, 2542, 2190},
  5.         [2] = {7901, 7898, 7895, 7893, 8907, 8911},
  6.         [3] = {9778, 9776, 9777, 6132, 8905, 7367},
  7.         [4] = {2491, 2487, 2488, 2644, 2519, 2408},
  8.         [5] = {7902, 7897, 7896, 7892, 2542, 2190},
  9.         [6] = {7901, 7898, 7895, 7893, 8907, 8911},
  10.         [7] = {9778, 9776, 9777, 6132, 8905, 7367},
  11.         [8] = {2491, 2487, 2488, 2644, 2519, 2408},
  12.     }
  13.  
  14.     for _, items in pairs(vocations[getPlayerVocation(cid)]) do
  15.         doPlayerAddItem(cid, items, 1)
  16.     end
  17.     doRemoveItem(item.uid, 1)
  18.     return true
  19. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement