Ir para conteúdo
Banner com Efeitos

Featured Replies

Postado

Estou em duvida, estou montando um servidor derivado de tibia versão 8.54, bom eu resolvi editar todas as vocations dnv, pois estavam erradas o tanto de mana e de hp que iam ganhar, bom eu reeditei e tem um problema..

 

eu mudo uma vocação para outra e quando eu relogo ela volta na primeira vocação.. um exemplo

 

Goku - ID 1

Goku SSJ1 - ID 2

Goku SSJ2 - ID 3

Goku SSJ3 - ID 4

 

 

vocação que eu criei é ID 1 ai eu passo de level e tudo mais, e transformo para virar ssj3 que é ID 4 porem quando eu relogo volto para vocação de ID 1, e eu nao queria q voltasse, tem como fazer algo para nao voltar? meu servidor é 8.54 e o script q eu uso seria esse para mudar de vocação:

 

transform.lua

function onCastSpell(cid, var)

if getPlayerVocation(cid) == 1 then
if getPlayerLevel(cid) >= 30 then
if exhaustion.get(cid,61260) == false then
doPlayerSetVocation(cid,2)
doCreatureChangeOutfit(cid, {lookType=67})
doSendMagicEffect(getCreaturePosition(cid), 12)
exhaustion.set(cid,61260,0)
else

end
return true
end

elseif getPlayerVocation(cid) == 2 then
if getPlayerLevel(cid) >= 50 then
if exhaustion.get(cid,61260) == false then
doPlayerSetVocation(cid,3)
doCreatureChangeOutfit(cid, {lookType=30})
doSendMagicEffect(getCreaturePosition(cid), 55)
exhaustion.set(cid,61260,0)
else

end
return true
end

elseif getPlayerVocation(cid) == 3 then
if getPlayerLevel(cid) >= 100 then
if exhaustion.get(cid,61260) == false then
doPlayerSetVocation(cid,4)
doCreatureChangeOutfit(cid, {lookType=18})
doSendMagicEffect(getCreaturePosition(cid), 57)
exhaustion.set(cid,61260,0)
else

end
return true
end

end
end

vocations.xml

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





<vocation id="1" name="Goku" description="um Goku" needpremium="0" gaincap="50" gainhp="270" gainmana="230" gainhpticks="6" gainhpamount="100" gainmanaticks="3" gainmanaamount="100" manamultiplier="1.1" attackspeed="1000" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="15" magDamage="10" distDamage="5" wandDamage="5"  magHealingDamage="3" defense="1.1" magdefense="1.3" armor="1.0"/>
 <skill fist="3.0" club="2.0" sword="1.0" axe="3.0" distance="1.1" shielding="3.0" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="2" name="Goku Oozaru" description="um Goku Oozaru" needpremium="0" gaincap="50" gainhp="270" gainmana="230" gainhpticks="6" gainhpamount="150" gainmanaticks="3" gainmanaamount="150" manamultiplier="1.1" attackspeed="950" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="30" magDamage="20" distDamage="10" wandDamage="10"  magHealingDamage="3" defense="1.1" magdefense="1.3" armor="1.0"/>
 <skill fist="3.0" club="2.0" sword="1.0" axe="3.0" distance="1.1" shielding="3.0" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="3" name="Goku Kaioken" description="um Goku Kaioken" needpremium="0" gaincap="50" gainhp="270" gainmana="230" gainhpticks="6" gainhpamount="200" gainmanaticks="3" gainmanaamount="250" manamultiplier="1.1" attackspeed="900" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="60" magDamage="40" distDamage="20" wandDamage="10"  magHealingDamage="4" defense="1.1" magdefense="1.3" armor="1.0"/>
 <skill fist="3.0" club="2.0" sword="1.0" axe="3.0" distance="1.1" shielding="3.0" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="4" name="Goku SSJ1" description="um Goku SSJ1" needpremium="0" gaincap="50" gainhp="270" gainmana="230" gainhpticks="6" gainhpamount="250" gainmanaticks="3" gainmanaamount="300" manamultiplier="1.1" attackspeed="800" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="90" magDamage="60" distDamage="30" wandDamage="20"  magHealingDamage="4" defense="1.1" magdefense="1.3" armor="1.0"/>
 <skill fist="3.0" club="2.0" sword="1.0" axe="3.0" distance="1.1" shielding="3.0" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="5" name="Goku SSJ2" description="um Goku SSJ2" needpremium="0" gaincap="50" gainhp="270" gainmana="230" gainhpticks="6" gainhpamount="300" gainmanaticks="3" gainmanaamount="350" manamultiplier="1.1" attackspeed="700" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="120" magDamage="80" distDamage="40" wandDamage="30"  magHealingDamage="4" defense="1.1" magdefense="1.3" armor="1.0"/>
 <skill fist="3.0" club="2.0" sword="1.0" axe="3.0" distance="1.1" shielding="3.0" fishing="1.1" experience="1.0"/>
</vocation>

<vocation id="6" name="Goku SSJ3" description="um Goku SSJ3" needpremium="0" gaincap="50" gainhp="270" gainmana="230" gainhpticks="6" gainhpamount="400" gainmanaticks="3" gainmanaamount="450" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="1">
 <formula meleeDamage="160" magDamage="110" distDamage="60" wandDamage="60"  magHealingDamage="4" defense="1.1" magdefense="1.3" armor="1.0"/>
 <skill fist="3.0" club="2.0" sword="1.0" axe="3.0" distance="1.1" shielding="3.0" fishing="1.1" experience="1.0"/>
</vocation>

</vocations>

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.7k

Informação Importante

Confirmação de Termo