Ir para conteúdo

Featured Replies

Postado

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
 
  • 4 months later...
  • Respostas 17
  • Visualizações 2.5k
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • Jamison Collins
    Jamison Collins

    Muito bom mano! Eu só por pratica, eu decidir reescrever o seu script para métodos utilizados no TFS 1.0, o script foi testado e está 100% funcional. Agora, para facilitar o script, eu botei o ID da

  • exatamente, cuida pra ficar bem certinho que vai funcionar

Postado

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"/>
 
?

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.

Visitante
Responder

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 520.1k

Informação Importante

Confirmação de Termo