Ir para conteúdo
  • Cadastre-se

(Resolvido)Npc ou item Que muda vocação em piramide - tfs 04


Ir para solução Resolvido por Bolletox,

Posts Recomendados

boa noite, galera meu ot tem 5 quest, ai eu estou querendo em cada quest coloca um npc no final dela, ai a primeira quest o cara faz a quest e ganha uma vocação nova, exemplo super knight, se eel for kina, super paladin e etc, e na segunda quest outro npc q da vocação, aí for super knight, ele vira hiper knight e por aí vai, ate a 5 quest, cada quest ele vira uma vocação nova, alguém poderia fazer pra mim ?? obrigado

Link para o post
Compartilhar em outros sites

@BilauX 

 

Vamos lá:

 

1° Passo: Vá na pasta data/npc e crie os 5 npcs:

EX do npc que vai dar a Promotion Super

Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Super Vocation" script="data/npc/scripts/vocations.lua" walkinterval="2000" floorchange="0">
    <health now="150" max="150"/>
    <look type="141" head="222" body="278" legs="85" feet="85" addons="2"/>
    <parameters>
        <parameter key="module_shop" value="1"/>
        <parameter key="message_greet" value="Ola |PLAYERNAME|. Eu posso promover para uma nova vocacao diga {super promote}."/>
    </parameters>
</npc>

 

Explicação:

Em Verde vai ser o Nome do Npc.

Em Azul vai ser a palavra-chave que o player vai ter que dizer (Se voce alterar aqui terá que alterar no Script lá).

 

2° Passo: Depois de Criado os 5 NPC's vá para a pasta data/XML e abra o vocations.xml:

Aqui voce tera que criar as 5 promotions vou deixar um exemplo.

Spoiler

<vocation id="9" name="Super Sorcerer" description="a Super Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="9" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="10" name="Super Druid" description="an Super Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="10" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="11" name="Super Paladin" description="a Super Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="11" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="12" name="Super Knight" description="an Super Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="12" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

 

Explicando:

Em Roxo será os ID's das vocações em ordem crescente. Veja qual é o ID da ultima vocação do seu server e vá seguindo em ordem (1,2,3,4,5,6,7,8..).

Em Vermelho você coloca o mesmo ID da vocação. Ex O Super Paladin tem o ID 11 então o fromvoc será o ID 11 também.

Em Laranja será o nome que ira aparecer quando o player der Look.

O resto é meio que auto explicativo o que faz. Se nao souber da uma pesquisada no forum.

 

3° Passo

Depois de criar os NPC's e as vocações vai na pasta data/npc/scripts e crie um arquivo chamado vocations.lua e cole isso dentro.

Spoiler

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                npcHandler:onThink()                end

local vocStage1 = {   

--[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}
--EX: [99] = {promo = 102}
    [1] = {prom = 9},
    [2] = {prom = 10},
    [3] = {prom = 11},
    [4] = {prom = 12},
          
}

local vocStage2 = {
    
    [9] = {prom = 13},
    [10] = {prom = 14},
    [11] = {prom = 15},
    [12] = {prom = 16},

}

local vocStage3 = {
    
    [13] = {prom = 17},
    [14] = {prom = 18},
    [15] = {prom = 19},
    [16] = {prom = 20},

}

local vocStage4 = {
    
    [17] = {prom = 21},
    [18] = {prom = 22},
    [19] = {prom = 23},
    [20] = {prom = 24},

}

local vocStage5 = {
    
    [21] = {prom = 25},
    [22] = {prom = 26},
    [23] = {prom = 27},
    [24] = {prom = 28},

}

function vocationStage1(cid, message, keywords, parameters, node)

        if vocStage1[getPlayerVocation(cid)] ~= vocStage1[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage1[getPlayerVocation(cid)].prom)
            selfSay("Voce foi promovido para a classe Super de Promotion!", cid)
            doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage2(cid, message, keywords, parameters, node)

        if vocStage2[getPlayerVocation(cid)] ~= vocStage2[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage2[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Hyper de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage3(cid, message, keywords, parameters, node)

        if vocStage3[getPlayerVocation(cid)] ~= vocStage3[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage3[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Stronger de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage4(cid, message, keywords, parameters, node)

        if vocStage4[getPlayerVocation(cid)] ~= vocStage4[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage4[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe OverPower de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage5(cid, message, keywords, parameters, node)

        if vocStage5[getPlayerVocation(cid)] ~= vocStage5[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage5[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Supreme de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


local node1 = keywordHandler:addKeyword({'super promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supers?'})
    node1:addChildKeyword({'yes'}, vocationStage1, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node2 = keywordHandler:addKeyword({'hyper promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Hypers?'})
    node2:addChildKeyword({'yes'}, vocationStage2, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node3 = keywordHandler:addKeyword({'stronger promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Strongers?'})
    node3:addChildKeyword({'yes'}, vocationStage3, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node4 = keywordHandler:addKeyword({'overpower promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes OverPowers?'})
    node4:addChildKeyword({'yes'}, vocationStage4, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node5 = keywordHandler:addKeyword({'supreme promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supremes?'})
    node5:addChildKeyword({'yes'}, vocationStage5, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

npcHandler:addModule(FocusModule:new())

 

Explicando:

[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}

Em Verde serão os  ID da Vocação ATUAL que o Player. Ex: O player é Druid então será o ID 2, veja no XML vocations. (Eu deixei com a vocação normal 1-Sorcerer, 2-Druid,3- Paladin, 4-Knight).

Em Azul é o ID da Vocação que o Player irá ganhar. 

Em Vermelho é aquela palavra-chave de quando foi criado os NPC's. (Se você mudou a palavra-chave quando criou o Npc então você terá que mudar aqui também, porque isso sera o que o player terá que dizer para ganhar a promotion).

 

Link para o post
Compartilhar em outros sites

como fazer, quando o cara vira a nova vocação enviar uma msg verde pro servidor todo ?? nem testei mais vou da rep, qualquer coia se funfa venho e marco melhor resposta... @Bolletox

 

22 minutos atrás, Bolletox disse:

@BilauX 

 

Vamos lá:

 

1° Passo: Vá na pasta data/npc e crie os 5 npcs:

EX do npc que vai dar a Promotion Super

  Mostrar conteúdo oculto

<?xml version="1.0" encoding="UTF-8"?>
<npc name="Super Vocation" script="data/npc/scripts/vocations.lua" walkinterval="2000" floorchange="0">
    <health now="150" max="150"/>
    <look type="141" head="222" body="278" legs="85" feet="85" addons="2"/>
    <parameters>
        <parameter key="module_shop" value="1"/>
        <parameter key="message_greet" value="Ola |PLAYERNAME|. Eu posso promover para uma nova vocacao diga {super promote}."/>
    </parameters>
</npc>

 

Explicação:

Em Verde vai ser o Nome do Npc.

Em Azul vai ser a palavra-chave que o player vai ter que dizer (Se voce alterar aqui terá que alterar no Script lá).

 

2° Passo: Depois de Criado os 5 NPC's vá para a pasta data/XML e abra o vocations.xml:

Aqui voce tera que criar as 5 promotions vou deixar um exemplo.

  Mostrar conteúdo oculto

<vocation id="9" name="Super Sorcerer" description="a Super Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="9" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="10" name="Super Druid" description="an Super Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="10" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="11" name="Super Paladin" description="a Super Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="11" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="12" name="Super Knight" description="an Super Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="12" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

 

Explicando:

Em Roxo será os ID's das vocações em ordem crescente. Veja qual é o ID da ultima vocação do seu server e vá seguindo em ordem (1,2,3,4,5,6,7,8..).

Em Vermelho você coloca o mesmo ID da vocação. Ex O Super Paladin tem o ID 11 então o fromvoc será o ID 11 também.

Em Laranja será o nome que ira aparecer quando o player der Look.

O resto é meio que auto explicativo o que faz. Se nao souber da uma pesquisada no forum.

 

3° Passo

Depois de criar os NPC's e as vocações vai na pasta data/npc/scripts e crie um arquivo chamado vocations.lua e cole isso dentro.

  Ocultar conteúdo

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                npcHandler:onThink()                end

local vocStage1 = {   

--[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}
--EX: [99] = {promo = 102}
    [1] = {prom = 9},
    [2] = {prom = 10},
    [3] = {prom = 11},
    [4] = {prom = 12},
          
}

local vocStage2 = {
    
    [9] = {prom = 13},
    [10] = {prom = 14},
    [11] = {prom = 15},
    [12] = {prom = 16},

}

local vocStage3 = {
    
    [13] = {prom = 17},
    [14] = {prom = 18},
    [15] = {prom = 19},
    [16] = {prom = 20},

}

local vocStage4 = {
    
    [17] = {prom = 21},
    [18] = {prom = 22},
    [19] = {prom = 23},
    [20] = {prom = 24},

}

local vocStage5 = {
    
    [21] = {prom = 25},
    [22] = {prom = 26},
    [23] = {prom = 27},
    [24] = {prom = 28},

}

function vocationStage1(cid, message, keywords, parameters, node)

        if vocStage1[getPlayerVocation(cid)] ~= vocStage1[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage1[getPlayerVocation(cid)].prom)
            selfSay("Voce foi promovido para a classe Super de Promotion!", cid)
            doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage2(cid, message, keywords, parameters, node)

        if vocStage2[getPlayerVocation(cid)] ~= vocStage2[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage2[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Hyper de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage3(cid, message, keywords, parameters, node)

        if vocStage3[getPlayerVocation(cid)] ~= vocStage3[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage3[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Stronger de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage4(cid, message, keywords, parameters, node)

        if vocStage4[getPlayerVocation(cid)] ~= vocStage4[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage4[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe OverPower de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage5(cid, message, keywords, parameters, node)

        if vocStage5[getPlayerVocation(cid)] ~= vocStage5[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage5[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Supreme de Promotion!", cid)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


local node1 = keywordHandler:addKeyword({'super promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supers?'})
    node1:addChildKeyword({'yes'}, vocationStage1, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node2 = keywordHandler:addKeyword({'hyper promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Hypers?'})
    node2:addChildKeyword({'yes'}, vocationStage2, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node3 = keywordHandler:addKeyword({'stronger promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Strongers?'})
    node3:addChildKeyword({'yes'}, vocationStage3, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node4 = keywordHandler:addKeyword({'overpower promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes OverPowers?'})
    node4:addChildKeyword({'yes'}, vocationStage4, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node5 = keywordHandler:addKeyword({'supreme promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supremes?'})
    node5:addChildKeyword({'yes'}, vocationStage5, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

npcHandler:addModule(FocusModule:new())

 

Explicando:

[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}

Em Verde serão os  ID da Vocação ATUAL que o Player. Ex: O player é Druid então será o ID 2, veja no XML vocations. (Eu deixei com a vocação normal 1-Sorcerer, 2-Druid,3- Paladin, 4-Knight).

Em Azul é o ID da Vocação que o Player irá ganhar. 

Em Vermelho é aquela palavra-chave de quando foi criado os NPC's. (Se você mudou a palavra-chave quando criou o Npc então você terá que mudar aqui também, porque isso sera o que o player terá que dizer para ganhar a promotion).

 

 

 

Link para o post
Compartilhar em outros sites

@BilauX 

Substitua o que esta no arquivo vocations.lua por esse:

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                npcHandler:onThink()                end


function changeVocation(cid)

    if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 13 or getPlayerVocation(cid) == 17 or getPlayerVocation(cid) == 21 or getPlayerVocation(cid) == 25 then
        return "Sorcerer"
    end
     if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 10 or getPlayerVocation(cid) == 14 or getPlayerVocation(cid) == 18 or getPlayerVocation(cid) == 22 or getPlayerVocation(cid) == 26 then
        return "Druid"
    end
    if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 11 or getPlayerVocation(cid) == 15 or getPlayerVocation(cid) == 19 or getPlayerVocation(cid) == 23 or getPlayerVocation(cid) == 27 then
        return "Paladin"
    end
     if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 12 or getPlayerVocation(cid) == 16 or getPlayerVocation(cid) == 20 or getPlayerVocation(cid) == 24 or getPlayerVocation(cid) == 28 then
        return "Knight"
    end

end

local vocStage1 = {   
--[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}
--EX: [99] = {promo = 102}
    [1] = {prom = 9},
    [2] = {prom = 10},
    [3] = {prom = 11},
    [4] = {prom = 12},   
}

local vocStage2 = {
    
    [9] = {prom = 13},
    [10] = {prom = 14},
    [11] = {prom = 15},
    [12] = {prom = 16},
}

local vocStage3 = {
    
    [13] = {prom = 17},
    [14] = {prom = 18},
    [15] = {prom = 19},
    [16] = {prom = 20},
}

local vocStage4 = {
    
    [17] = {prom = 21},
    [18] = {prom = 22},
    [19] = {prom = 23},
    [20] = {prom = 24},
}

local vocStage5 = {
    
    [21] = {prom = 25},
    [22] = {prom = 26},
    [23] = {prom = 27},
    [24] = {prom = 28}
}   

function vocationStage1(cid, message, keywords, parameters, node)

        if vocStage1[getPlayerVocation(cid)] ~= vocStage1[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage1[getPlayerVocation(cid)].prom)
            selfSay("Voce foi promovido para a classe Super de Promotion!", cid)
            doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Super " ..changeVocation(cid), MESSAGE_INFO_DESCR)
            doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage2(cid, message, keywords, parameters, node)

        if vocStage2[getPlayerVocation(cid)] ~= vocStage2[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage2[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Hyper de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Hyper " ..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage3(cid, message, keywords, parameters, node)

        if vocStage3[getPlayerVocation(cid)] ~= vocStage3[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage3[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Stronger de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Stronger " ..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage4(cid, message, keywords, parameters, node)

        if vocStage4[getPlayerVocation(cid)] ~= vocStage4[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage4[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe OverPower de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para OverPower " ..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage5(cid, message, keywords, parameters, node)

        if vocStage5[getPlayerVocation(cid)] ~= vocStage5[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage5[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Supreme de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Supreme "..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

    
local node1 = keywordHandler:addKeyword({'super promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supers?'})
    node1:addChildKeyword({'yes'}, vocationStage1, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node2 = keywordHandler:addKeyword({'hyper promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Hypers?'})
    node2:addChildKeyword({'yes'}, vocationStage2, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node3 = keywordHandler:addKeyword({'stronger promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Strongers?'})
    node3:addChildKeyword({'yes'}, vocationStage3, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node4 = keywordHandler:addKeyword({'overpower promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes OverPowers?'})
    node4:addChildKeyword({'yes'}, vocationStage4, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node5 = keywordHandler:addKeyword({'supreme promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supremes?'})
    node5:addChildKeyword({'yes'}, vocationStage5, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

npcHandler:addModule(FocusModule:new())

 

Link para o post
Compartilhar em outros sites

@Bolletox funciono, mais quando reloga a vocação some....

 

 

 

6 horas atrás, Bolletox disse:

@BilauX 

Substitua o que esta no arquivo vocations.lua por esse:


local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                npcHandler:onThink()                end


function changeVocation(cid)

    if getPlayerVocation(cid) == 1 or getPlayerVocation(cid) == 9 or getPlayerVocation(cid) == 13 or getPlayerVocation(cid) == 17 or getPlayerVocation(cid) == 21 or getPlayerVocation(cid) == 25 then
        return "Sorcerer"
    end
     if getPlayerVocation(cid) == 2 or getPlayerVocation(cid) == 10 or getPlayerVocation(cid) == 14 or getPlayerVocation(cid) == 18 or getPlayerVocation(cid) == 22 or getPlayerVocation(cid) == 26 then
        return "Druid"
    end
    if getPlayerVocation(cid) == 3 or getPlayerVocation(cid) == 11 or getPlayerVocation(cid) == 15 or getPlayerVocation(cid) == 19 or getPlayerVocation(cid) == 23 or getPlayerVocation(cid) == 27 then
        return "Paladin"
    end
     if getPlayerVocation(cid) == 4 or getPlayerVocation(cid) == 12 or getPlayerVocation(cid) == 16 or getPlayerVocation(cid) == 20 or getPlayerVocation(cid) == 24 or getPlayerVocation(cid) == 28 then
        return "Knight"
    end

end

local vocStage1 = {   
--[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}
--EX: [99] = {promo = 102}
    [1] = {prom = 9},
    [2] = {prom = 10},
    [3] = {prom = 11},
    [4] = {prom = 12},   
}

local vocStage2 = {
    
    [9] = {prom = 13},
    [10] = {prom = 14},
    [11] = {prom = 15},
    [12] = {prom = 16},
}

local vocStage3 = {
    
    [13] = {prom = 17},
    [14] = {prom = 18},
    [15] = {prom = 19},
    [16] = {prom = 20},
}

local vocStage4 = {
    
    [17] = {prom = 21},
    [18] = {prom = 22},
    [19] = {prom = 23},
    [20] = {prom = 24},
}

local vocStage5 = {
    
    [21] = {prom = 25},
    [22] = {prom = 26},
    [23] = {prom = 27},
    [24] = {prom = 28}
}   

function vocationStage1(cid, message, keywords, parameters, node)

        if vocStage1[getPlayerVocation(cid)] ~= vocStage1[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage1[getPlayerVocation(cid)].prom)
            selfSay("Voce foi promovido para a classe Super de Promotion!", cid)
            doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Super " ..changeVocation(cid), MESSAGE_INFO_DESCR)
            doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage2(cid, message, keywords, parameters, node)

        if vocStage2[getPlayerVocation(cid)] ~= vocStage2[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage2[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Hyper de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Hyper " ..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

function vocationStage3(cid, message, keywords, parameters, node)

        if vocStage3[getPlayerVocation(cid)] ~= vocStage3[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage3[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Stronger de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Stronger " ..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage4(cid, message, keywords, parameters, node)

        if vocStage4[getPlayerVocation(cid)] ~= vocStage4[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage4[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe OverPower de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para OverPower " ..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end


function vocationStage5(cid, message, keywords, parameters, node)

        if vocStage5[getPlayerVocation(cid)] ~= vocStage5[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage5[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Supreme de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para Supreme "..changeVocation(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
        end
end

    
local node1 = keywordHandler:addKeyword({'super promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supers?'})
    node1:addChildKeyword({'yes'}, vocationStage1, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node2 = keywordHandler:addKeyword({'hyper promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Hypers?'})
    node2:addChildKeyword({'yes'}, vocationStage2, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node3 = keywordHandler:addKeyword({'stronger promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Strongers?'})
    node3:addChildKeyword({'yes'}, vocationStage3, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node4 = keywordHandler:addKeyword({'overpower promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes OverPowers?'})
    node4:addChildKeyword({'yes'}, vocationStage4, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node5 = keywordHandler:addKeyword({'supreme promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supremes?'})
    node5:addChildKeyword({'yes'}, vocationStage5, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

npcHandler:addModule(FocusModule:new())

 

 

 

Link para o post
Compartilhar em outros sites

@Bolletox aí...

<?xml version="1.0" encoding="UTF-8"?>
 <vocations>
 <vocation id="0" name="None" description="none" needpremium="0" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/></vocation>

 <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="10" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="60" gainmanaticks="3" gainmanaamount="60" manamultiplier="1.4" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="3">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/></vocation>

 <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="10" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="70" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="4">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.3" club="1.3" sword="1.3" axe="1.3" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="10" gainhp="15" gainmana="15" gainhpticks="2" gainhpamount="250" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.4" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="10" gainhp="20" gainmana="5" gainhpticks="2" gainhpamount="245" gainmanaticks="2" gainmanaamount="200" manamultiplier="3.0" attackspeed="150" soulmax="210" gainsoulticks="15" fromvoc="4" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="9" name="Super Sorcerer" description="a super sorcerer" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="5" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="10" name="Super Druid" description="an super druid" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="6" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="11" name="Super Paladin" description="an super paladin" needpremium="1" gaincap="10" gainhp="20" gainmana="20" gainhpticks="2" gainhpamount="270" gainmanaticks="2" gainmanaamount="265" manamultiplier="1.4" attackspeed="1000" soulmax="210" gainsoulticks="18" fromvoc="7" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.2" shielding="1.2" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="12" name="Super Knight" description="a super knight" needpremium="1" gaincap="10" gainhp="22" gainmana="8" gainhpticks="2" gainhpamount="260" gainmanaticks="2" gainmanaamount="210" manamultiplier="3.0" attackspeed="200" soulmax="210" gainsoulticks="18" fromvoc="8" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>
 </vocations>
6 minutos atrás, Bolletox disse:

@BilauX Manda seu vocations.xml pra eu dar uma olhada

 

 

Link para o post
Compartilhar em outros sites

@BilauX Tenta esse

<?xml version="1.0" encoding="UTF-8"?>
 <vocations>
 <vocation id="0" name="None" description="none" needpremium="0" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

 <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="10" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="60" gainmanaticks="3" gainmanaamount="60" manamultiplier="1.4" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="3">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>

 <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="10" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="70" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="4">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.3" club="1.3" sword="1.3" axe="1.3" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="10" gainhp="15" gainmana="15" gainhpticks="2" gainhpamount="250" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.4" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="10" gainhp="20" gainmana="5" gainhpticks="2" gainhpamount="245" gainmanaticks="2" gainmanaamount="200" manamultiplier="3.0" attackspeed="150" soulmax="210" gainsoulticks="15" fromvoc="4" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="9" name="Super Sorcerer" description="a super sorcerer" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="9" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="10" name="Super Druid" description="an super druid" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="10" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="11" name="Super Paladin" description="an super paladin" needpremium="1" gaincap="10" gainhp="20" gainmana="20" gainhpticks="2" gainhpamount="270" gainmanaticks="2" gainmanaamount="265" manamultiplier="1.4" attackspeed="1000" soulmax="210" gainsoulticks="18" fromvoc="11" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.2" shielding="1.2" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="12" name="Super Knight" description="a super knight" needpremium="1" gaincap="10" gainhp="22" gainmana="8" gainhpticks="2" gainhpamount="260" gainmanaticks="2" gainmanaamount="210" manamultiplier="3.0" attackspeed="200" soulmax="210" gainsoulticks="18" fromvoc="12" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>
 </vocations>

 

Link para o post
Compartilhar em outros sites

eu entendi q tu fez no fromvoc e funciono, só é assim msm se o cara é super knight e tenta virar super knight aparece um erro no distro, teria como voltar uma msg falando pra ele q ele é essa vocação já  e não é possível mudar e não ter erro no distro ??

@Bolletox

[11:12:08.661] [Error - NpcScript Interface] 
[11:12:08.661] data/npc/scripts/vocacao.lua:onCreatureSay
[11:12:08.661] Description: 
[11:12:08.661] data/npc/scripts/vocacao.lua:70: attempt to index field '?' (a nil value)
[11:12:08.661] stack traceback:
[11:12:08.661] 	data/npc/scripts/vocacao.lua:70: in function 'callback'
[11:12:08.661] 	data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
[11:12:08.661] 	data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
[11:12:08.661] 	data/npc/lib/npcsystem/keywordhandler.lua:122: in function 'processMessage'
[11:12:08.661] 	data/npc/lib/npcsystem/npchandler.lua:387: in function 'onCreatureSay'
[11:12:08.662] 	data/npc/scripts/vocacao.lua:7: in function <data/npc/scripts/vocacao.lua:7>

 

 

21 minutos atrás, Bolletox disse:

@BilauX Tenta esse


<?xml version="1.0" encoding="UTF-8"?>
 <vocations>
 <vocation id="0" name="None" description="none" needpremium="0" gaincap="10" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="70" manamultiplier="1.1" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="2"> <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/> <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
</vocation>

 <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="10" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="60" gainmanaticks="3" gainmanaamount="60" manamultiplier="1.4" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="3">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>

 <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="10" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="70" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="150" soulmax="100" gainsoulticks="120" fromvoc="4">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.3" club="1.3" sword="1.3" axe="1.3" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="33" gainhpticks="3" gainhpamount="150" gainmanaticks="2" gainmanaamount="277" manamultiplier="1.1" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="10" gainhp="15" gainmana="15" gainhpticks="2" gainhpamount="250" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.4" attackspeed="150" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
 </vocation>

 <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="10" gainhp="20" gainmana="5" gainhpticks="2" gainhpamount="245" gainmanaticks="2" gainmanaamount="200" manamultiplier="3.0" attackspeed="150" soulmax="210" gainsoulticks="15" fromvoc="4" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="9" name="Super Sorcerer" description="a super sorcerer" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="9" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="10" name="Super Druid" description="an super druid" needpremium="1" gaincap="10" gainhp="7" gainmana="38" gainhpticks="3" gainhpamount="180" gainmanaticks="2" gainmanaamount="295" manamultiplier="1.2" attackspeed="245" soulmax="210" gainsoulticks="18" fromvoc="10" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.5" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="11" name="Super Paladin" description="an super paladin" needpremium="1" gaincap="10" gainhp="20" gainmana="20" gainhpticks="2" gainhpamount="270" gainmanaticks="2" gainmanaamount="265" manamultiplier="1.4" attackspeed="1000" soulmax="210" gainsoulticks="18" fromvoc="11" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.2" shielding="1.2" fishing="1.1" experience="1.0"/>

 </vocation>

 <vocation id="12" name="Super Knight" description="a super knight" needpremium="1" gaincap="10" gainhp="22" gainmana="8" gainhpticks="2" gainhpamount="260" gainmanaticks="2" gainmanaamount="210" manamultiplier="3.0" attackspeed="200" soulmax="210" gainsoulticks="18" fromvoc="12" lessloss="30">
 <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
 <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>

 </vocation>
 </vocations>

 

 

 

Link para o post
Compartilhar em outros sites
  • Solução

@BilauX 

Spoiler

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                npcHandler:onThink()                end


local storages = {

    stage1 = 10001,
    stage2 = 10002,
    stage3 = 10003,
    stage4 = 10004,
    stage5 = 10005
}

local vocStage1 = {   
--[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}
--EX: [99] = {promo = 102}
    [1] = {prom = 9},
    [2] = {prom = 10},
    [3] = {prom = 11},
    [4] = {prom = 12},   
}

local vocStage2 = {
    
    [9] = {prom = 13},
    [10] = {prom = 14},
    [11] = {prom = 15},
    [12] = {prom = 16},
}

local vocStage3 = {
    
    [13] = {prom = 17},
    [14] = {prom = 18},
    [15] = {prom = 19},
    [16] = {prom = 20},
}

local vocStage4 = {
    
    [17] = {prom = 21},
    [18] = {prom = 22},
    [19] = {prom = 23},
    [20] = {prom = 24},
}

local vocStage5 = {
    
    [21] = {prom = 25},
    [22] = {prom = 26},
    [23] = {prom = 27},
    [24] = {prom = 28}
}   

function vocationStage1(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage1) ~= 1 then
        if vocStage1[getPlayerVocation(cid)] ~= vocStage1[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage1[getPlayerVocation(cid)].prom)
            selfSay("Voce foi promovido para a classe Super de Promotion!", cid)
            doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para " ..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
            doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
            setPlayerStorageValue(cid, storages.stage1, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Super de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end

function vocationStage2(cid, message, keywords, parameters, node)

     if getPlayerStorageValue(cid, storages.stage2) ~= 1 then
        if vocStage2[getPlayerVocation(cid)] ~= vocStage2[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage2[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Hyper de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para " ..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage2, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Hyper de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end

function vocationStage3(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage3) ~= 1 then
        if vocStage3[getPlayerVocation(cid)] ~= vocStage3[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage3[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Stronger de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para " ..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage3, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Stronger de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end


function vocationStage4(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage4) ~= 1 then
        if vocStage4[getPlayerVocation(cid)] ~= vocStage4[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage4[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe OverPower de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para "..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage4, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe OverPower de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end


function vocationStage5(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage5) ~= 1 then
        if vocStage5[getPlayerVocation(cid)] ~= vocStage5[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage5[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Supreme de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para "..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage5, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Supreme de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end

    
local node1 = keywordHandler:addKeyword({'super promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supers?'})
    node1:addChildKeyword({'yes'}, vocationStage1, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node2 = keywordHandler:addKeyword({'hyper promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Hypers?'})
    node2:addChildKeyword({'yes'}, vocationStage2, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node3 = keywordHandler:addKeyword({'stronger promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Strongers?'})
    node3:addChildKeyword({'yes'}, vocationStage3, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node4 = keywordHandler:addKeyword({'overpower promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes OverPowers?'})
    node4:addChildKeyword({'yes'}, vocationStage4, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node5 = keywordHandler:addKeyword({'supreme promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supremes?'})
    node5:addChildKeyword({'yes'}, vocationStage5, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

npcHandler:addModule(FocusModule:new())
 

 

Link para o post
Compartilhar em outros sites

@Bolletox

[13:0:41.912] [Error - NpcScript Interface] 
[13:0:41.913] data/npc/scripts/vocacao.lua:onCreatureSay
[13:0:41.913] Description: 
[13:0:41.913] data/npc/scripts/vocacao.lua:64: attempt to index field '?' (a nil value)
[13:0:41.913] stack traceback:
[13:0:41.913] 	data/npc/scripts/vocacao.lua:64: in function 'callback'
[13:0:41.913] 	data/npc/lib/npcsystem/keywordhandler.lua:40: in function 'processMessage'
[13:0:41.913] 	data/npc/lib/npcsystem/keywordhandler.lua:168: in function 'processNodeMessage'
[13:0:41.913] 	data/npc/lib/npcsystem/keywordhandler.lua:122: in function 'processMessage'
[13:0:41.913] 	data/npc/lib/npcsystem/npchandler.lua:387: in function 'onCreatureSay'
[13:0:41.913] 	data/npc/scripts/vocacao.lua:7: in function <data/npc/scripts/vocacao.lua:7>

 

6 minutos atrás, Bolletox disse:

@BilauX 

  Ocultar conteúdo

local keywordHandler = KeywordHandler:new()
local npcHandler = NpcHandler:new(keywordHandler)
NpcSystem.parseParameters(npcHandler)

function onCreatureAppear(cid)            npcHandler:onCreatureAppear(cid)        end
function onCreatureDisappear(cid)        npcHandler:onCreatureDisappear(cid)        end
function onCreatureSay(cid, type, msg)   npcHandler:onCreatureSay(cid, type, msg)    end
function onThink()                npcHandler:onThink()                end


local storages = {

    stage1 = 10001,
    stage2 = 10002,
    stage3 = 10003,
    stage4 = 10004,
    stage5 = 10005
}

local vocStage1 = {   
--[ID DA VOCATION ATUAL DO PLAYER] = {prom = ID DA VOCACAO QUE O PLAYER VAI GANHAR}
--EX: [99] = {promo = 102}
    [1] = {prom = 9},
    [2] = {prom = 10},
    [3] = {prom = 11},
    [4] = {prom = 12},   
}

local vocStage2 = {
    
    [9] = {prom = 13},
    [10] = {prom = 14},
    [11] = {prom = 15},
    [12] = {prom = 16},
}

local vocStage3 = {
    
    [13] = {prom = 17},
    [14] = {prom = 18},
    [15] = {prom = 19},
    [16] = {prom = 20},
}

local vocStage4 = {
    
    [17] = {prom = 21},
    [18] = {prom = 22},
    [19] = {prom = 23},
    [20] = {prom = 24},
}

local vocStage5 = {
    
    [21] = {prom = 25},
    [22] = {prom = 26},
    [23] = {prom = 27},
    [24] = {prom = 28}
}   

function vocationStage1(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage1) ~= 1 then
        if vocStage1[getPlayerVocation(cid)] ~= vocStage1[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage1[getPlayerVocation(cid)].prom)
            selfSay("Voce foi promovido para a classe Super de Promotion!", cid)
            doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para " ..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
            doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
            setPlayerStorageValue(cid, storages.stage1, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Super de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end

function vocationStage2(cid, message, keywords, parameters, node)

     if getPlayerStorageValue(cid, storages.stage2) ~= 1 then
        if vocStage2[getPlayerVocation(cid)] ~= vocStage2[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage2[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Hyper de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para " ..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage2, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Hyper de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end

function vocationStage3(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage3) ~= 1 then
        if vocStage3[getPlayerVocation(cid)] ~= vocStage3[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage3[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Stronger de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para " ..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage3, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Stronger de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end


function vocationStage4(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage4) ~= 1 then
        if vocStage4[getPlayerVocation(cid)] ~= vocStage4[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage4[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe OverPower de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para "..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage4, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe OverPower de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end


function vocationStage5(cid, message, keywords, parameters, node)

    if getPlayerStorageValue(cid, storages.stage5) ~= 1 then
        if vocStage5[getPlayerVocation(cid)] ~= vocStage5[getPlayerVocation(cid)].prom then
            doPlayerSetVocation(cid, vocStage5[getPlayerVocation(cid)].prom)
             selfSay("Voce foi promovido para a classe Supreme de Promotion!", cid)
             doBroadcastMessage("O player "..getCreatureName(cid).." foi promovido para "..getPlayerVocationName(cid), MESSAGE_INFO_DESCR)
             doSendMagicEffect(getThingPos(cid), CONST_ME_SOUND_GREEN)
             setPlayerStorageValue(cid, storages.stage5, 1)
        end
    else
        selfSay("Voce ja foi promovido para a classe Supreme de Promotion!", cid)
        doSendMagicEffect(getThingPos(cid), CONST_ME_POFF)
    end
end

    
local node1 = keywordHandler:addKeyword({'super promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supers?'})
    node1:addChildKeyword({'yes'}, vocationStage1, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node1:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node2 = keywordHandler:addKeyword({'hyper promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Hypers?'})
    node2:addChildKeyword({'yes'}, vocationStage2, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node2:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node3 = keywordHandler:addKeyword({'stronger promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Strongers?'})
    node3:addChildKeyword({'yes'}, vocationStage3, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node3:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node4 = keywordHandler:addKeyword({'overpower promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes OverPowers?'})
    node4:addChildKeyword({'yes'}, vocationStage4, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node4:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

local node5 = keywordHandler:addKeyword({'supreme promote'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Voce quer ser promovido para as vocacoes Supremes?'})
    node5:addChildKeyword({'yes'}, vocationStage5, {npcHandler = npcHandler, onlyFocus = true, reset = true})
    node5:addChildKeyword({'no'}, StdModule.say, {npcHandler = npcHandler, onlyFocus = true, text = 'Good Bye.', reset = true})

npcHandler:addModule(FocusModule:new())
 

 

 

 

Link para o post
Compartilhar em outros sites

@BilauX Que estranho no meu ta pegando normal, tipo voce tem que ir em ordem na fala com os npc's ex : falar primeiro com super, hyper... se não vai dar esse erro mesmo.

Ultima tentativa substitua o seu vocations.xml pelo meu pra ver se vai funciona, crie os 5 npc's e teste

 

Spoiler

<?xml version="1.0" encoding="UTF-8"?>
<vocations>
    <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="40" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="40" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="3" name="Paladin" description="a  paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="30" manamultiplier="1.4" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="50" gainmanaticks="6" gainmanaamount="30" manamultiplier="3.0" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="8" name="elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!-- STAGE 1 -->

    <vocation id="9" name="Super Sorcerer" description="a Super Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="10" name="Super Druid" description="an Super Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="11" name="Super Paladin" description="a Super Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="12" name="Super Knight" description="an Super Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!-- STAGE 2 -->

    <vocation id="13" name="Hyper Sorcerer" description="a Hyper Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="13" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="14" name="Hyper Druid" description="an Hyper Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="14" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="15" name="Hyper Paladin" description="a Hyper Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="15" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="16" name="Hyper Knight" description="an Hyper Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="16" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!--STAGE 3 -->

    <vocation id="17" name="Stronger Sorcerer" description="a Stronger Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="17" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="18" name="Stronger Druid" description="an Stronger Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="18" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="19" name="Stronger Paladin" description="a Stronger Paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="19" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="20" name="Stronger Knight" description="an Stronger Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="20" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

     <!--STAGE 4 -->

    <vocation id="21" name="Overpower Sorcerer" description="a Overpower Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="21" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="22" name="Overpower Druid" description="an Overpower Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="22" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="23" name="Overpower Paladin" description="a Overpower Paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="23" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="24" name="Overpower Knight" description="an Overpower Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="24" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!--STAGE 5 -->

    <vocation id="25" name="Supreme Sorcerer" description="a Supreme Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="25" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="26" name="Supreme Druid" description="an Supreme Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="26" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="27" name="Supreme Paladin" description="a Supreme Paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="27" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="28" name="Supreme Knight" description="an Supreme Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="28" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation> 

</vocations>
 

 

Link para o post
Compartilhar em outros sites

@Bolletox

ah então de boa só não pode repetir a classe né ??, pensei q tinha um jeito de repetir a classe voltasse uma mensagem falando q tu já ta nessa vocação ou acontecesse nada, e não desse erro, igual do promotion..

3 minutos atrás, Bolletox disse:

@BilauX Que estranho no meu ta pegando normal, tipo voce tem que ir em ordem na fala com os npc's ex : falar primeiro com super, hyper... se não vai dar esse erro mesmo.

Ultima tentativa substitua o seu vocations.xml pelo meu pra ver se vai funciona, crie os 5 npc's e teste

 

  Ocultar conteúdo

<?xml version="1.0" encoding="UTF-8"?>
<vocations>
    <vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="1" manamultiplier="4.0" attackspeed="2000" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="40" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="1">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="40" manamultiplier="1.1" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="2">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="3" name="Paladin" description="a  paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="30" manamultiplier="1.4" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="3">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="50" gainmanaticks="6" gainmanaamount="30" manamultiplier="3.0" attackspeed="500" soulmax="100" gainsoulticks="120" fromvoc="4">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="1" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="2" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="3" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="8" name="elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="4" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!-- STAGE 1 -->

    <vocation id="9" name="Super Sorcerer" description="a Super Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="10" name="Super Druid" description="an Super Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="11" name="Super Paladin" description="a Super Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="12" name="Super Knight" description="an Super Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="nil" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!-- STAGE 2 -->

    <vocation id="13" name="Hyper Sorcerer" description="a Hyper Sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="13" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="14" name="Hyper Druid" description="an Hyper Druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="14" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="15" name="Hyper Paladin" description="a Hyper Paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="15" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="16" name="Hyper Knight" description="an Hyper Knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="16" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!--STAGE 3 -->

    <vocation id="17" name="Stronger Sorcerer" description="a Stronger Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="17" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="18" name="Stronger Druid" description="an Stronger Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="18" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="19" name="Stronger Paladin" description="a Stronger Paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="19" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="20" name="Stronger Knight" description="an Stronger Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="20" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

     <!--STAGE 4 -->

    <vocation id="21" name="Overpower Sorcerer" description="a Overpower Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="21" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="22" name="Overpower Druid" description="an Overpower Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="22" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="23" name="Overpower Paladin" description="a Overpower Paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="23" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="24" name="Overpower Knight" description="an Overpower Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="24" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>

    <!--STAGE 5 -->

    <vocation id="25" name="Supreme Sorcerer" description="a Supreme Sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="25" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="2.0" sword="2.0" axe="2.0" distance="2.0" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="26" name="Supreme Druid" description="an Supreme Druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="50" gainmanaticks="2" gainmanaamount="60" manamultiplier="1.1" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="26" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.5" club="1.8" sword="1.8" axe="1.8" distance="1.8" shielding="1.5" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="27" name="Supreme Paladin" description="a Supreme Paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="27" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.2" club="1.2" sword="1.2" axe="1.2" distance="1.1" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation>
    <vocation id="28" name="Supreme Knight" description="an Supreme Knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="3.0" attackspeed="500" soulmax="200" gainsoulticks="15" fromvoc="28" lessloss="30">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="1.0" magDefense="1.0" armor="1.0"/>
        <skill fist="1.1" club="1.1" sword="1.1" axe="1.1" distance="1.4" shielding="1.1" fishing="1.1" experience="1.0"/>
    </vocation> 

</vocations>
 

 

 

 

Link para o post
Compartilhar em outros sites

como eu olho, todas storages q estão sendo usadas no meu servidor tem como, pra não dar conflito com as q tenho ??  @Bolletox

 

46 minutos atrás, Bolletox disse:

@BilauX Por exemplo se eu tiver com a vocação super e falar  com o ultimo que seria o supreme entao vai dar esse erro de callback mais se for em ordem nao vai dar erro. Eu coloquei storages pra parar esse erro

 

 

Editado por BilauX (veja o histórico de edições)
Link para o post
Compartilhar em outros sites

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

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emojis são permitidos.

×   Seu link foi automaticamente incorporado.   Mostrar como link

×   Seu conteúdo anterior foi restaurado.   Limpar o editor

×   Não é possível colar imagens diretamente. Carregar ou inserir imagens do URL.

  • Quem Está Navegando   0 membros estão online

    Nenhum usuário registrado visualizando esta página.

×
×
  • Criar Novo...

Informação Importante

Confirmação de Termo