Postado Fevereiro 11, 2013 12 anos Sei que existe scripts melhores que fazem a mesma coisa, porém estou postando esse ja que estou começando a programação lua. Gostaria de agradecer no fundo do meu hearth rsrsrs, a ajuda do MaXwEnDeLl Comandos: !kit - !kitnb - !firstitens - !itens Tastado: TFS 8.6 DEV 0.4 (REV3884) talkactions.xml <talkaction words="!kit;!kitnb;!firstitens;!itens" event="script" value="fitens.lua"/>[/code] http://pastebin.com/ewNaBgXF fitens.lua [code] --[[ 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 http://pastebin.com/V6m5wW86
Postado Fevereiro 11, 2013 12 anos Bom trabalho aprendiz (: , como seu primeiro trabalho está "E-X-P-E-T-A-C-U-L-A-R". rep+ moss. Tony Araújo
Postado Fevereiro 11, 2013 12 anos Autor também gostaria de agradecer o Orochi por ter tado umas aulas ;]
Postado Fevereiro 11, 2013 12 anos Muito bom Guido {:. Recomendo você dar uma estudada no for em Lua -"Supra Omnes Lux Lucis" - Acima de todos brilha a Luz -
Participe da conversa
Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.