Ir para conteúdo

Featured Replies

Postado

Bom, primeiramente boa tarde,

estou com um problema de vocations, queria aumentar as vocs que tenho,

só que ela nao salva no player quando ele recebe a promotion...

existe algo a mais pra fazer alem de mexer no vocations.xml e adicionar a vocation no item de promo?

Editado por Platinun (veja o histórico de edições)

Resolvido por gabriel28

Ir para solução
  • Respostas 13
  • Visualizações 670
  • Created
  • Última resposta

Top Posters In This Topic

Most Popular Posts

  • @Platinun    function onUse(cid, item) if (isPremium(cid)) then if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then doPlayerSendTextMessage(cid,25,"Voce ja foi promovid

  • @Platinun    @Platinun Sobre a pergunta da criação de outras vocs, a lógica é a seguinte: knight>elite knight>extreme knight>supreme knight O from voc do knight é a id dele me

  • @gabriel28  porque ele pula uma voc? ele passa de knight pra epic elite knight... nem passa pro elite knight... e  se eu quiser agr criar outras vocs e uma e a sucessora da outra teria qe usar o numer

Posted Images

Postado
  • Autor

@gabriel28 meu script e esse, e a voc ta com a fromvoc anterior. exemplo:{ knight=4, elite knight=4, epic elite knight= 8} a epic elite knight e pra ser depois da elite knight

Spoiler

function onUse(cid, item)

if (isPremium(cid)) then

if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then

doPlayerSendTextMessage(cid,25,"Voce ja foi promovido!")

else

doRemoveItem(item.uid, 1) -- remove o promotion scroll

doPlayerSendTextMessage(cid,25,"Voce foi promovido com sucesso!")

doPlayerSetVocation(cid, getPlayerVocation(cid)+4)

end

end

end

 

@Brunds nao da erro nenhum no console....

Spoiler

    <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="3.0" attackspeed="2000" 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="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="4" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="3.0" attackspeed="2000" 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>

    <vocation id="12" name="Epic Elite Knight" description="an epic elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="3.0" attackspeed="2000" soulmax="200" gainsoulticks="15" fromvoc="8" lessloss="50">
        <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="2.0" magDefense="1.8" armor="1.9"/>
        <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>

a do knight e essa aqui no voc.xml

Editado por Platinun (veja o histórico de edições)

Postado
  • Solução

@Platinun 
 

function onUse(cid, item)

if (isPremium(cid)) then

if (getPlayerVocation(cid) >= 5 and getPlayerVocation(cid) <=8) then

doPlayerSendTextMessage(cid,25,"Voce ja foi promovido!")

else

doRemoveItem(item.uid, 1) -- remove o promotion scroll

doPlayerSendTextMessage(cid,25,"Voce foi promovido com sucesso!")

doPlayerSetPromotionLevel(cid, 2)

end

end

end

 

Participe da conversa

Você pode postar agora e se cadastrar mais tarde. Se você tem uma conta, faça o login para postar com sua conta.

Visitante
Responder

Quem Está Navegando 0

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

Estatísticas dos Fóruns

  • Tópicos 96.9k
  • Posts 519.6k

Informação Importante

Confirmação de Termo