Ir para conteúdo
  • 0

Bug Com Vocation


Zim

Pergunta

Pessoal eu fis 2 novas vocações pro meu server. Até a Hell Knight esta funcionando normalmente, mais quando eu viro extreme o char nao usa mais nenhuma magia, nem itens de knight como se fosse uma None Vocation,(isso ocorre com todas vocações) o vocations.xml esta assim:

 

<?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="1500" 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="5" gainhp="5" gainmana="25" gainhpticks="3" gainhpamount="5" gainmanaticks="1.5" gainmanaamount="5" manamultiplier="1.1" attackspeed="1500" 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="5" gainhp="5" gainmana="25" gainhpticks="3" gainhpamount="5" gainmanaticks="1.5" gainmanaamount="5" manamultiplier="1.1" attackspeed="1500" 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="2" gainhpamount="5" gainmanaticks="2" gainmanaamount="5" manamultiplier="1.4" attackspeed="1500" 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="15" gainhp="15" gainmana="5" gainhpticks="1.5" gainhpamount="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="3.0" attackspeed="1500" 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="0" gaincap="10" gainhp="10" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="1.5" gainmanaamount="10" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" 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="6" name="Elder Druid" description="an elder druid" needpremium="0" gaincap="10" gainhp="10" gainmana="30" gainhpticks="3" gainhpamount="10" gainmanaticks="1.5" gainmanaamount="10" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" 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="7" name="Royal Paladin" description="a royal paladin" needpremium="0" gaincap="15" gainhp="15" gainmana="20" gainhpticks="2" gainhpamount="10" gainmanaticks="1.5" gainmanaamount="10" manamultiplier="1.4" attackspeed="1500" soulmax="200" gainsoulticks="15" 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="8" name="Elite Knight" description="an elite knight" needpremium="0" gaincap="20" gainhp="20" gainmana="10" gainhpticks="1.5" gainhpamount="10" gainmanaticks="1.5" gainmanaamount="10" manamultiplier="3.0" attackspeed="1500" soulmax="200" gainsoulticks="15" 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="9" name="Hell Sorcerer" description="a Hell Sorcerer" needpremium="1" gaincap="15" gainhp="10" gainmana="30" gainhpticks="3" gainhpamount="15" gainmanaticks="1.5" gainmanaamount="15" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="5">		
<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="Hell Druid" description="a Hell Druid" needpremium="1" gaincap="15" gainhp="10" gainmana="30" gainhpticks="3" gainhpamount="15" gainmanaticks="1.5" gainmanaamount="15" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="6">		
<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="Hell Paladin" description="a Hell Paladin" needpremium="1" gaincap="20" gainhp="15" gainmana="20" gainhpticks="2" gainhpamount="15" gainmanaticks="2" gainmanaamount="15" manamultiplier="1.4" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="7">
<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="Hell Knight" description="a Hell Knight" needpremium="1" gaincap="25" gainhp="20" gainmana="10" gainhpticks="1.5" gainhpamount="15" gainmanaticks="3" gainmanaamount="15" manamultiplier="3.0" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="8">		
<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="13" name="Extreme Sorcerer" description="a Extreme Sorcerer" needpremium="1" gaincap="20" gainhp="15" gainmana="35" gainhpticks="3" gainhpamount="20" gainmanaticks="1.5" gainmanaamount="20" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="9">		
<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="Extreme Druid" description="a Extreme Druid" needpremium="1" gaincap="20" gainhp="15" gainmana="35" gainhpticks="3" gainhpamount="20" gainmanaticks="1.5" gainmanaamount="20" manamultiplier="1.1" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="10">		
<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="Extreme Paladin" description="a Extreme Paladin" needpremium="1" gaincap="25" gainhp="20" gainmana="25" gainhpticks="2" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.4" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="11">		
<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="Extreme Knight" description="a Extreme Knight" needpremium="1" gaincap="30" gainhp="25" gainmana="15" gainhpticks="1.5" gainhpamount="20" gainmanaticks="3" gainmanaamount="20" manamultiplier="3.0" attackspeed="1500" soulmax="200" gainsoulticks="15" fromvoc="12">		
<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>

 

Alguem poderia me dizer como arrumar isso?

Link para o comentário
Compartilhar em outros sites

6 respostass a esta questão

Posts Recomendados

  • 0

vai no spells.xml e nas magias de sorcerer adiciona isso :

 

<vocation name="Extreme Sorcerer"/>

 

ou isso :

 

<vocation id="13"/>

 

e assim por diante

 

ex:

 

	<instant name="Fire Wave" words="exevo flam hur" lvl="18" mana="25" direction="1" exhaustion="2000" needlearn="0" script="attack/fire wave.lua">
	<vocation name="Sorcerer"/>
	<vocation name="Master Sorcerer"/>
               <vocation name="Extreme Sorcerer"/>
</instant>

 

e assim tb :

 

	<instant name="Fire Wave" words="exevo flam hur" lvl="18" mana="25" direction="1" exhaustion="2000" needlearn="0" script="attack/fire wave.lua">
	<vocation id="1"/>
	<vocation id="5"/>
               <vocation id="13"/>
</instant>

 

vc escolhe qual das duas vc quer usar

Editado por marumbizinho
Link para o comentário
Compartilhar em outros sites

  • 0

intão cara mais da problema nos itens tmb, tipo se eu quero usar uma knight armor no extreme knight ela nao funciona. quero arrumar isso :/

Link para o comentário
Compartilhar em outros sites

  • 0

a vocação funciona, mas é como se ela fosse uma vocação diferente.tipo se eu quero usar um knight armor no extreme knight o knight armor nao vai funcionar pois o char nao é mais um kina :/ isso que eu quero arrumar.

Link para o comentário
Compartilhar em outros sites

  • 0

Vai em movements procura o id do item que vc ker, e adiciona a vocation para ela(vocation) poder usar o item tb

 

Exemplo:

 

<movevent event="Equip" itemid="7893" slot="feet" function="onEquipItem">
	<vocation name="Sorcerer"/>
	<vocation name="Master Sorcerer" showInDescription="0"/>
	<vocation name="Extreme Sorcerer" showInDescription="0"/>
	<vocation name="Druid"/>
	<vocation name="Elder Druid" showInDescription="0"/>
	<vocation name="Extreme Druid" showInDescription="0"/>
</movevent>
<movevent event="DeEquip" itemid="7893" slot="feet" function="onDeEquipItem"/>

 

PS: tem que fazer isso com wands/rods/ e com os weapons.xml

 

Bom trabalho

:D

Link para o comentário
Compartilhar em outros sites

  • 0

E não se esqueça de adicionar as novas voc nas funções isDruid(cid), isSorcerer(cid), isKnight(cid) e isPaladin(cid).

 

Abra data/lib/functions.lua e localize "isDruid". Deve estar assim (parte dela)

 

isInArray({2,6}, getPlayerVocation(cid))

 

Adicione o id da sua vocação junto ao 2 e 6. Repita o exemplo com as demais funções.

 

 

flw

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...