Advertisement
Guest User

Untitled

a guest
Feb 11th, 2013
34
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.95 KB | None | 0 0
  1. --[[
  2. Autores: Eratsu & MaXwEnDeLl
  3. Quer ter outros scripts de ótima qualidade?
  4. Acesse www.TibiaKing.com
  5. ]]--
  6.  
  7. local storage = 15482 --dont touch
  8. local vocations = {
  9.      [0] = { -- No vocation
  10.         left_hand = 2190,
  11.         right_hand = 2525,
  12.         helmet = 2457,
  13.         armor = 2463,
  14.         legs = 2647,
  15.         bp = 1988,
  16.         boots = 2643
  17.        
  18.     },
  19.     [1] = { -- Sorcerer
  20.         left_hand = 2190,
  21.         right_hand = 2525,
  22.         helmet = 2457,
  23.         armor = 2463,
  24.         legs = 2647,
  25.         bp = 1988,
  26.     },
  27.     [2] = { -- Druid
  28.         left_hand = 2182,
  29.         right_hand = 2525,
  30.         helmet = 2457,
  31.         armor = 2463,
  32.         legs = 2647,
  33.         bp = 1988,
  34.     },
  35.     [4] = { -- Knight
  36.         left_hand = 2383,
  37.         right_hand = 2525,
  38.         helmet = 2457,
  39.         armor = 2463,
  40.         legs = 2643,
  41.         bp = 1988,
  42.     },
  43.     [3] = { -- Paladin
  44.         left_hand = 2389,
  45.         right_hand = 2525,
  46.         helmet = 2457,
  47.         armor = 2463,
  48.         legs = 2647,
  49.         bp = 1988,
  50.     },
  51. }
  52. function onSay(cid, words, param, channel)
  53.     if getPlayerStorageValue(cid, storage) < 1 then
  54.             local it = vocations[getPlayerVocation(cid)]
  55.            
  56.             doPlayerAddItem(cid, it.helmet, 1, false, 1)
  57.             doPlayerAddItem(cid, it.bp, 1, false, 3)
  58.             doPlayerAddItem(cid, it.armor, 1, false, 4)
  59.             doPlayerAddItem(cid, it.right_hand, 1, false, 5)
  60.             doPlayerAddItem(cid, it.left_hand, 1, false, 6)
  61.             doPlayerAddItem(cid, it.legs, 1, false,7)
  62.             doPlayerAddItem(cid, it.boots, 1, false, 8)
  63.            
  64.             doPlayerSendCancel(cid, "Você ganhou itens iniciais de " .. getPlayerVocationName(cid) .. ".")
  65.             setPlayerStorageValue(cid, storage, 1)
  66.     else
  67.         doPlayerSendCancel(cid, "Você ja ganhou os itens da vocação " .. getPlayerVocationName(cid) .. ".")
  68.     end
  69.    
  70.     return true
  71. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement