Ir para conteúdo

Ajuda Com Vocação


gabrielmotta1

Posts Recomendados

Não Sei Se aki e o Lugar Certo Mas Eu Preciso De Ajuda To Com Uma Quest Que Muda De Vocação Que Eu Peguei Aki Mesmo No xTibia

 

a Quest Esta Certa Mas Quando u Faso A Quest Eu Mudo De Vocação Por Ex

Se Eu vor Voc 1 , 2 , 3 , 4 Vou Pra Vocação 5 Depois Faso Outra Quest Vou Da Vocação 5 Pra 6 E Assim Por Diante

Mas O poblema E Quando o Player Desloga E loga a Vocação Dele Muda

Vou Mandar Minha Vocacation.xml Pra Vcs Verem

 

	<vocation id="0" name="None" description="none" needpremium="0" gaincap="5" gainhp="5" gainmana="5" gainhpticks="6" gainhpamount="1" gainmanaticks="6" gainmanaamount="2" manamultiplier="4.0" attackspeed="1300" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no" droploot="no">
	<formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
	<skill fist="2.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="12" gainhpamount="25" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="1">
	<formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
	<skill fist="2.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="12" gainhpamount="25" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="2">
	<formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
	<skill fist="2.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="8" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="3">
	<formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
	<skill fist="2.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="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="4">
	<formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
	<skill fist="2.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="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="6">
	<formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
	<skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
</vocation>
      	 <vocation id="6" name="Spin Assassin" description="an Spin Assassin" needpremium="1" gaincap="20" gainhp="15" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.5" attackspeed="350" soulmax="300" gainsoulticks="20" fromvoc="5" lessloss="30">
               	<formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               	<skill fist="0.9" club="0.9" sword="0.9" axe="0.9" distance="0.9" shielding="0.9" fishing="0.9" experience="1.0"/>
     	  </vocation>

 

Eu Queria Saber Se Tem Algo Errado Com Meu vocation.xml

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

Não pode fazer com que 4 vocações torne-se apenas uma por causa disso ...

 

fromvoc="6">

 

Se quer que as 4 vocações iniciais torne-se 1 só depois da Quests, então você tem que criar 4 Tags de vocações.

Assim:

 

Voc ID: 1 --< Sorcerer >--
Voc ID: 2 --< Druid >--
Voc ID: 3 --< Paladin >--
Voc ID: 4 --< Knight >--

 

Depois da Quests ::

 

Voc ID: 5 fromvoc="1" --< Mixed Assassin >--
Voc ID: 6 fromvoc="2" --< Mixed Assassin >--
Voc ID: 7 fromvoc="3" --< Mixed Assassin >--
Voc ID: 8 fromvoc="4" --< Mixed Assassin >--

 

É só depois da Quest, as vocações de ID: 5 á 8 terem os mesmos nomes.

 

Espero ter ajudado!

Abraços !! :smile_positivo:

Link para o comentário
Compartilhar em outros sites

Eu Não Entendi Direito O que Vc Disse Tem Como Me Espricar Melhor

 

 

To Usando Esse Bau De Quest Aki

 

function onUse(cid, item, fromPosition, itemEx, toPosition)

local a = 10000 -- level do jogador pra poder usar o bau
local tabela = {
[1] = {5},
[2] = {5},
[3] = {5},
[4] = {5},
}

-- config reset
local RemainingLvl = 8 
local pid = getPlayerGUID(cid)

function addReset(cid) 
resets = getResets(cid) 
setPlayerStorageValue(cid,1020,resets+1) 
return TRUE 
end 

function getResets(cid) 
resets = getPlayerStorageValue(cid,1020) 
if resets < 0 then 
resets = 0 
end 
return resets 
end
-- end config reset --

if getPlayerLevel(cid) < a then
return doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você deve ter level "..a.. " level ou mais para poder abrir este bau.")
end

if not tabela[getPlayerVocation(cid)] then
doPlayerSendTextMessage(cid, MESSAGE_EVENT_DEFAULT, "Você não tem vocação necessária para fazer está quest.")
end

addReset(cid)
doPlayerSetVocation(cid, tabela[getPlayerVocation(cid)][1])
setPlayerStorageValue(cid, 1020, 1)
doTeleportThing(cid, getTownTemplePosition(getPlayerTown(cid))) 
doRemoveCreature(cid) 
db.executeQuery("UPDATE `players` SET `level` = "..RemainingLvl..", `experience` = 0 WHERE `id` = "..pid)

return TRUE 
end

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

Data/XML/vocation.xml

Exclua tudo e cole isso lá dentro.

 

<?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="2" manamultiplier="4.0" attackspeed="1300" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no" droploot="no">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="12" gainhpamount="25" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="1">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="12" gainhpamount="25" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="2">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="8" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="3">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="4">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="1">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>
	<vocation id="6" name="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="2">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>
       <vocation id="7" name="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="3">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>
	<vocation id="8" name="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="4">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>
       <vocation id="9" name="Spin Assassin" description="an Spin Assassin" needpremium="1" gaincap="20" gainhp="15" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.5" attackspeed="350" soulmax="300" gainsoulticks="20" fromvoc="5" lessloss="30">
                       <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
                       <skill fist="0.9" club="0.9" sword="0.9" axe="0.9" distance="0.9" shielding="0.9" fishing="0.9" experience="1.0"/>
        </vocation>
        <vocation id="10" name="Spin Assassin" description="an Spin Assassin" needpremium="1" gaincap="20" gainhp="15" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.5" attackspeed="350" soulmax="300" gainsoulticks="20" fromvoc="6" lessloss="30">
                       <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
                       <skill fist="0.9" club="0.9" sword="0.9" axe="0.9" distance="0.9" shielding="0.9" fishing="0.9" experience="1.0"/>
        </vocation>
        <vocation id="11" name="Spin Assassin" description="an Spin Assassin" needpremium="1" gaincap="20" gainhp="15" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.5" attackspeed="350" soulmax="300" gainsoulticks="20" fromvoc="7" lessloss="30">
                       <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
                       <skill fist="0.9" club="0.9" sword="0.9" axe="0.9" distance="0.9" shielding="0.9" fishing="0.9" experience="1.0"/>
        </vocation>
        <vocation id="12" name="Spin Assassin" description="an Spin Assassin" needpremium="1" gaincap="20" gainhp="15" gainmana="30" gainhpticks="1" gainhpamount="20" gainmanaticks="2" gainmanaamount="20" manamultiplier="1.5" attackspeed="350" soulmax="300" gainsoulticks="20" fromvoc="8" lessloss="30">
                       <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
                       <skill fist="0.9" club="0.9" sword="0.9" axe="0.9" distance="0.9" shielding="0.9" fishing="0.9" experience="1.0"/>
        </vocation>
</vocations>

 

Faça a Quest novamente e veja se deu certo.

Abraços !! :smile_positivo:

Link para o comentário
Compartilhar em outros sites

vou testar aki agr

 

@edit

 

botei assim e foi

 

<?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="2" manamultiplier="4.0" attackspeed="1300" soulmax="100" gainsoulticks="120" fromvoc="0" attackable="no" droploot="no">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="12" gainhpamount="25" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="1">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="12" gainhpamount="25" gainmanaticks="2" gainmanaamount="50" manamultiplier="1.1" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="2">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="8" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="1.4" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="3">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="4">
               <formula meleeDamage="2.5" distDamage="2.5" wandDamage="2.5" magDamage="2.5" magHealingDamage="2.5" defense="2.5" magDefense="2.5" armor="2.5"/>
               <skill fist="2.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="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="8">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>
               <vocation id="6" name="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="5">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>
       <vocation id="7" name="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="6">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>
               <vocation id="8" name="Mixed Assassin" description="a Mixed Assassin" needpremium="0" gaincap="25" gainhp="15" gainmana="5" gainhpticks="6" gainhpamount="25" gainmanaticks="3" gainmanaamount="50" manamultiplier="3.0" attackspeed="600" soulmax="100" gainsoulticks="120" fromvoc="7">
               <formula meleeDamage="2.0" distDamage="2.0" wandDamage="2.0" magDamage="2.0" magHealingDamage="2.0" defense="2.0" magDefense="2.0" armor="2.0"/>
               <skill fist="1.0" club="1.0" sword="1.0" axe="1.0" distance="1.0" shielding="1.1" fishing="1.1" experience="1.0"/>
       </vocation>

</vocations>

 

Muito Obrigado Mesmo Vai Ganhar Rep++

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

×
×
  • Criar Novo...