Ir para conteúdo

[Movement] Vocation Amulet


GicoO

Posts Recomendados

Gente queria um amuleto que mudasse sua vocação.

Exemplo:

Sou um Druid ai eu coloco o colar e viro Epic druid...

Quando eu tiro o colar volto para Druid denovo.

 

Axo que e facil de fazer.

 

IDS das vocações

9 - Epic Master Sorcerer

10 - Epic Elder Druid

11 - Epic Royal Paladin

12 - Epic Elite Knight

 

ID do amuleto - 8979

 

Gente eu ja tentei usar esse sistema aqui mas nao funcionou -> Ring transform

 

E tipow queria ele sem tempo e sem carga e talz...

 

 

Dou rep + durante 1 semana pra quem me arruma esse script funfando 100% :thumbsupsmiley2:

 

 

 

Alguem ajuda ai gente =xx

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

Cara Quando Eu Vi o Topico , Eu dei risadas , Pois , Ninguem Vai Postar Um Script , Desse Pelomenos De " Graça "

 

To Passando , Só Pra Da Uma Dica smile_positivo.gif

 

 

 

Man tem um aqui no Xtibia ¬¬ esse aqui -> System

Que na verdade eu consegui usar sim! deu tudo certo e talz

so que eu quero que modifiquem para Colar e tirem aquele negocio de quando o player tira o anel ele muda pra otro sakas?

 

É simples pq ninguem postaria?

:wink_smile:

 

Um para cada vocação ou 1 so para todos?

 

 

1 para todos =D

Link para o comentário
Compartilhar em outros sites

só funciona se for das 2° vocações, ou com qualquer vocação.

exemplo se ele for sorcerer, ele vai pra epic ou só se for master sorcerer?

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

só funciona se for das 2° vocações, ou com qualquer vocação.

exemplo se ele for sorcerer, ele vai pra epic ou só se for master sorcerer?

 

 

 

Ele pode ser de qualquer vocação tipow

 

Ele e sorcerer e vai virar epic master sorcerer

A mesma coisa se ele for master sorcerer ele vai virar epic master sorcerer tambem

 

sako?

Nao importa se ele for so sorcerer ou master sorcerer ... usando o amuleto ele vai pra epic master sorcerer.

 

knight vai pra epic elite knight

elite knight vai pra epic elite knight tambem...

 

é isso =) intendeu?

Espero respostas :D

Link para o comentário
Compartilhar em outros sites

na pasta data/movements procura o arquivo movements.xml e adc essas 2 tags:

 

<movevent type="Equip" itemid="8979" slot="necklace" event="script" value="vocamulet.lua"/>
<movevent type="DeEquip" itemid="8979" slot="necklace" event="script" value="vocamulet.lua"/>

 

abra a pasta data/movements/scripts e crie um arquivo lua, como nome de vocamulet.lua

e cole o seguinte script:

 

local vocs = {9, 10, 11, 12, 9, 10, 11, 12}

function onEquip(cid, item, slot)
return doPlayerSetStorageValue(cid, 7895, getPlayerVocation(cid)), doPlayerSetVocation(cid, vocs[getPlayerVocation(cid)])
end

function onDeEquip(cid, item, slot)
return doPlayerSetVocation(cid, getPlayerStorageValue(cid, 7895) > 0 and getPlayerStorageValue(cid, 7895) or getPlayerVocation(cid))
end

 

não testei, entom se num pegar, manda o erro, pra gente corrigir

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

na pasta data/movements procura o arquivo movements.xml e adc essas 2 tags:

 

<movevent type="Equip" itemid="8979" slot="necklace" event="script" value="vocamulet.lua"/>
<movevent type="DeEquip" itemid="8979" slot="necklace" event="script" value="vocamulet.lua"/>

 

abra a pasta data/movements/scripts e crie um arquivo lua, como nome de vocamulet.lua

e cole o seguinte script:

 

local vocs = {9, 10, 11, 12, 9, 10, 11, 12}

function onEquip(cid, item, slot)
return doPlayerSetStorageValue(cid, 7895, getPlayerVocation(cid)), doPlayerSetVocation(cid, vocs[getPlayerVocation(cid)])
end

function onDeEquip(cid, item, slot)
return doPlayerSetVocation(cid, getPlayerStorageValue(cid, 7895) > 0 and getPlayerStorageValue(cid, 7895) or getPlayerVocation(cid))
end

 

não testei, entom se num pegar, manda o erro, pra gente corrigir

 

 

 

Ok vo la testar e ja edito aqui =D

 

 

Tipow eu testei la e talz...

[06/07/2011 18:56:55] [Warning - Vocations::getVocation] Vocation 10 not found.

no caso eu testei com um druid mas tipow ai eu coloco o colar dai aparece You heave no vocation.

Dai quando eu tiro o colar fica sem vocação -> You are.

 

 

aew so ta dando esse probleminha nas minhas vocations :S

Alguem podeira ajuda ai?

 

<?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="750" 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 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="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="750" 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 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="5" gainmanaticks="3" gainmanaamount="5" manamultiplier="1.1" attackspeed="750" 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 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="5" gainmanaticks="4" gainmanaamount="5" manamultiplier="1.4" attackspeed="600" 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 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="5" gainmanaticks="6" gainmanaamount="5" manamultiplier="3.0" attackspeed="600" 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 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="10" gainmanaticks="2" gainmanaamount="10" 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" 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="10" gainmanaticks="2" gainmanaamount="10" 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" 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="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="350" 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 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="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="350" 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 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="Epic Master Sorcerer" description="an epic master sorcerer" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="400" soulmax="200" gainsoulticks="15" fromvoc="5" lessloss="50">
       <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="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="Epic Elder Druid" description="an epic elder druid" needpremium="0" gaincap="10" gainhp="5" gainmana="30" gainhpticks="4" gainhpamount="10" gainmanaticks="2" gainmanaamount="10" manamultiplier="1.1" attackspeed="400" soulmax="200" gainsoulticks="15" fromvoc="6" lessloss="50">
       <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="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="Epic Royal Paladin" description="an epic royal paladin" needpremium="0" gaincap="20" gainhp="10" gainmana="15" gainhpticks="3" gainhpamount="10" gainmanaticks="3" gainmanaamount="10" manamultiplier="1.4" attackspeed="250" soulmax="200" gainsoulticks="15" fromvoc="7" lessloss="50">
       <formula meleeDamage="1.0" distDamage="1.0" wandDamage="1.0" magDamage="1.0" magHealingDamage="1.0" defense="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="Epic Elite Knight" description="an epic elite knight" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="8" gainhpamount="10" gainmanaticks="4" gainmanaamount="10" manamultiplier="3.0" attackspeed="250" 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="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> 

 

 

 

 

Aeeew consegui resolver as pira aque =D

Podem fexar o topico!

Consegui arruma o script ;D

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

×
×
  • Criar Novo...