Postado Maio 20, 2014 11 anos Esse code parece com esse: function onUse(cid, item, frompos, itemEx, topos) local vocs = {9,10,11,12} if isInArray(vocs,getPlayerVocation(cid)) then doPlayerSendTextMessage(cid, 4, 'You already are upgraded vocation') return false else local vucs = {1,2,3,4} if isInArray(vucs,getPlayerVocation(cid)) then doPlayerSendTextMessage(cid, 4, 'You need first normal promotion in order to use this') else local allVocs = {1,2,3,4,5,6,7,8} if not isInArray(allVocs,getPlayerVocation(cid)) then doPlayerSendTextMessage(cid, 4, 'You have an invalid vocation') else -- If master sorcerer if getPlayerVocation(cid) == 5 then doPlayerSetVocation(cid, 11) doRemoveItem(item.uid,1) -- If elder druid elseif getPlayerVocation(cid) == 6 then doPlayerSetVocation(cid, 12) doRemoveItem(item.uid,1) -- If royal paladin elseif getPlayerVocation(cid) == 7 then doPlayerSetVocation(cid, 10) doRemoveItem(item.uid,1) -- If elite knight elseif getPlayerVocation(cid) == 8 then doPlayerSetVocation(cid, 9) doRemoveItem(item.uid,1) end end end end return true end =x Antica Global - Server Online SITE: http://anticaglobal.com/ IP: anticaglobal.com EXP: 999x [sTAGES] ML: 300x SKILL: 500x LOOT: 10x VERSÃO: 10.77 PORTA: 7171 Stages: 1 - 8 level, 999x 9 - 20 level, 950x 21 - 50 level, 800x 51 - 100 level, 750x 101 - 130 level, 650x 131 - 180 level, 550x 181 - 230 level, 450x 231 - 300 level, 350x 301+ level, 300x
Postado Setembro 27, 2014 10 anos graças funciona muito bem, eu só tenho uma pergunta, agora novas vocações não pode usar armas e itens :/ in TFS 1.0
Postado Setembro 27, 2014 10 anos graças funciona muito bem, eu só tenho uma pergunta, agora novas vocações não pode usar armas e itens :/ in TFS 1.0 Você tem que configurar em weapons para as novas vocações poderem utilizar o item. Ot Design: https://discord.gg/VgtVRNmCD7
Postado Setembro 27, 2014 10 anos Você tem que configurar em weapons para as novas vocações poderem utilizar o item. Ejemplo: <!-- Wands --> <wand id="2190" level="7" mana="2" min="8" max="18" type="energy" function="default"> <!-- Wand of Vortex --> <vocation name="Sorcerer"/> agrego <vocation name="Epic Master Sorcerer"/> ?
Postado Setembro 27, 2014 10 anos exatamente, cuida pra ficar bem certinho que vai funcionar Ot Design: https://discord.gg/VgtVRNmCD7
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.