Ir para conteúdo
  • 0

Pedido


arthurabreu57

Pergunta

5 respostass a esta questão

Posts Recomendados

  • 0



Ok, vamos por a mão na massa!

Basicamente nós nos basearemos nisso:
Localizado em: DATA/XML/VOCATION.XML

Exemplo

Quote

    <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.1" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.5" />
    <skill id="1" multiplier="2.0" />
    <skill id="2" multiplier="2.0" />
    <skill id="3" multiplier="2.0" />
    <skill id="4" multiplier="2.0" />
    <skill id="5" multiplier="1.5" />
    <skill id="6" multiplier="1.1" />
    </vocation>


Primeiro vou explicar cada item pra você criar sua vocação certinha!

id = não deve haver nenhuma igual, tente seguir a sequencia para não se perder.
name = nome da nova vocação.
description = quando der look aparecera esse nome, e caso acc manager também.
needpremium = se precisa de premmium para ter essa vocação (0 = não 1 = sim)
gaincap = o tanto de cap que vai ganhar quando upar
gainhp = o tanto de vida que vai ganhar quando upar
gainmana = o tanto de mana que vai ganhar quando upar
gainhpticks = o tanto de segundos que demora pra subir a vida
gainhpamount = o tanto de vida que vai ganhar a cada ( no nosso exemplo 6 ) segundos
gainmanaticks = o tanto de segundos que demora pra subir a mana
gainmanaamount = o tanto de mana que vai ganhar a cada ( no nosso exemplo 3 ) segundos
manamultiplier = quanto ml vai demorar pra subir, quanto menor mais rápido
attackspeed = velocidade do ataque de wands e weapons (quanto menor mais rápido)
soulmax = o maximo de soul
gainsoulticks = o tanto de segundos que vai demorar pra subir o soul
fromvoc = como ele será reconhecido nos scripts ( bote igual o id )

Formulas:

meleeDamage = quanto hita com weapons ( exceto wands e rods )
distDamage = quanto hita com ataques a distancia
wandDamage = quando hita com wand
magDamage = quando hita com magias
magHealingDamage = quanto heala com magias de cura, ( tanto exura como exura sio )
defense = quanto defende com escudos
armor = quanto defende com armaduras

Skill Ids:

(0) Fist
(1) Club
(2) Sword
(3) Axe
(4) Distance
(5) Shield
(6) Fishing

PS: Quando menor o skill multiplier, mais rápido upa os skills.

Criando nova vocação :
1. Basta você adicionar nosso exemplo, embaixo das vocations.

Exemplo

Quote

    <?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" armor="1.0" />
    <skill id="0" multiplier="1.5" />
    <skill id="1" multiplier="2.0" />
    <skill id="2" multiplier="2.0" />
    <skill id="3" multiplier="2.0" />
    <skill id="4" multiplier="2.0" />
    <skill id="5" multiplier="1.5" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="1" name="Sorcerer" description="a sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.1" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.5" />
    <skill id="1" multiplier="2.0" />
    <skill id="2" multiplier="2.0" />
    <skill id="3" multiplier="2.0" />
    <skill id="4" multiplier="2.0" />
    <skill id="5" multiplier="1.5" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="2" name="Druid" description="a druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="6" gainhpamount="50" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.1" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.5" />
    <skill id="1" multiplier="1.8" />
    <skill id="2" multiplier="1.8" />
    <skill id="3" multiplier="1.8" />
    <skill id="4" multiplier="1.8" />
    <skill id="5" multiplier="1.5" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="3" name="Paladin" description="a paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="4" gainhpamount="50" gainmanaticks="4" gainmanaamount="50" manamultiplier="1.4" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.2" />
    <skill id="1" multiplier="1.2" />
    <skill id="2" multiplier="1.2" />
    <skill id="3" multiplier="1.2" />
    <skill id="4" multiplier="1.1" />
    <skill id="5" multiplier="1.1" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="4" name="Knight" description="a knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="3" gainhpamount="55" gainmanaticks="6" gainmanaamount="50" manamultiplier="3.0" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.1" />
    <skill id="1" multiplier="1.1" />
    <skill id="2" multiplier="1.1" />
    <skill id="3" multiplier="1.1" />
    <skill id="4" multiplier="1.4" />
    <skill id="5" multiplier="1.1" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="5" name="Master Sorcerer" description="a master sorcerer" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="250" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.1" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.5" />
    <skill id="1" multiplier="2.0" />
    <skill id="2" multiplier="2.0" />
    <skill id="3" multiplier="2.0" />
    <skill id="4" multiplier="2.0" />
    <skill id="5" multiplier="1.5" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="6" name="Elder Druid" description="an elder druid" needpremium="1" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="250" gainmanaticks="2" gainmanaamount="250" manamultiplier="1.1" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.5" />
    <skill id="1" multiplier="1.8" />
    <skill id="2" multiplier="1.8" />
    <skill id="3" multiplier="1.8" />
    <skill id="4" multiplier="1.8" />
    <skill id="5" multiplier="1.5" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="7" name="Royal Paladin" description="a royal paladin" needpremium="1" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="250" gainmanaticks="3" gainmanaamount="250" manamultiplier="1.4" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.2" />
    <skill id="1" multiplier="1.2" />
    <skill id="2" multiplier="1.2" />
    <skill id="3" multiplier="1.2" />
    <skill id="4" multiplier="1.1" />
    <skill id="5" multiplier="1.1" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="8" name="Elite Knight" description="an elite knight" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="255" gainmanaticks="4" gainmanaamount="250" manamultiplier="3.0" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.1" />
    <skill id="1" multiplier="1.1" />
    <skill id="2" multiplier="1.1" />
    <skill id="3" multiplier="1.1" />
    <skill id="4" multiplier="1.4" />
    <skill id="5" multiplier="1.1" />
    <skill id="6" multiplier="1.1" />
    </vocation>

    <vocation id="9" name="Nome da Nova voc" description="an new voc" needpremium="1" gaincap="25" gainhp="15" gainmana="5" gainhpticks="2" gainhpamount="255" gainmanaticks="4" gainmanaamount="250" manamultiplier="3.0" attackspeed="400" 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" armor="1.0" />
    <skill id="0" multiplier="1.1" />
    <skill id="1" multiplier="1.1" />
    <skill id="2" multiplier="1.1" />
    <skill id="3" multiplier="1.1" />
    <skill id="4" multiplier="1.4" />
    <skill id="5" multiplier="1.1" />
    <skill id="6" multiplier="1.1" />
    </vocation>



Adicionando Spells às novas vocações
2. Basta adicionar o nome da nova vocação em: data/spells/spells.xml

Exemplo

Quote

    <instant name="Flame Strike" words="exori flam" lvl="12" mana="20" prem="1" range="5" casterTargetOrDirection="1" blockwalls="1" exhaustion="2000" needlearn="0" script="attack/flame strike.lua">
    <vocation name="Sorcerer" />
    <vocation name="Druid" />
    <vocation name="Master Sorcerer" />
    <vocation name="Elder Druid" />
    <vocation name="Nome da Voc" /> <----- Aqui você bota a nova vocação
    </instant>

Se Ajudei REP+

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

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...