Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --[[
- Autores: Eratsu & MaXwEnDeLl
- Quer ter outros scripts de ótima qualidade?
- Acesse www.TibiaKing.com
- ]]--
- local storage = 15482 --dont touch
- local vocations = {
- [0] = { -- No vocation
- left_hand = 2190,
- right_hand = 2525,
- helmet = 2457,
- armor = 2463,
- legs = 2647,
- bp = 1988,
- boots = 2643
- },
- [1] = { -- Sorcerer
- left_hand = 2190,
- right_hand = 2525,
- helmet = 2457,
- armor = 2463,
- legs = 2647,
- bp = 1988,
- },
- [2] = { -- Druid
- left_hand = 2182,
- right_hand = 2525,
- helmet = 2457,
- armor = 2463,
- legs = 2647,
- bp = 1988,
- },
- [4] = { -- Knight
- left_hand = 2383,
- right_hand = 2525,
- helmet = 2457,
- armor = 2463,
- legs = 2643,
- bp = 1988,
- },
- [3] = { -- Paladin
- left_hand = 2389,
- right_hand = 2525,
- helmet = 2457,
- armor = 2463,
- legs = 2647,
- bp = 1988,
- },
- }
- function onSay(cid, words, param, channel)
- if getPlayerStorageValue(cid, storage) < 1 then
- local it = vocations[getPlayerVocation(cid)]
- doPlayerAddItem(cid, it.helmet, 1, false, 1)
- doPlayerAddItem(cid, it.bp, 1, false, 3)
- doPlayerAddItem(cid, it.armor, 1, false, 4)
- doPlayerAddItem(cid, it.right_hand, 1, false, 5)
- doPlayerAddItem(cid, it.left_hand, 1, false, 6)
- doPlayerAddItem(cid, it.legs, 1, false,7)
- doPlayerAddItem(cid, it.boots, 1, false, 8)
- doPlayerSendCancel(cid, "Você ganhou itens iniciais de " .. getPlayerVocationName(cid) .. ".")
- setPlayerStorageValue(cid, storage, 1)
- else
- doPlayerSendCancel(cid, "Você ja ganhou os itens da vocação " .. getPlayerVocationName(cid) .. ".")
- end
- return true
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement