Ir para conteúdo
  • 0

Outfit Por Vocation


Windu

Pergunta

Protocolo (versão do Tibia): 8.6

Servidor utilizado: OTServ 8.60 r.6052

 

Olá, eu queria saber como posso fazer um Outfit por Vocation.

Exemplo:

Uma vocação é Elf, e ela vai usar outfit de Elf e nada mais.

Outra é Dwarf, e ela vai usar outfit de Dwarf e nada mais.

Existe algum comando que eu possa digitar ali no outfit.xml ??

A organização dos outfits está assim:

<outfit id="1" premium="0">

<list type="female" looktype="136" name="Elf"/>

<list type="male" looktype="128" name="Elf"/>

</outfit>

 

Que comando eu posso botar aí para somente alguma vocation usar?

Se souberem de outro modo podem falar.. Valeu!

Link para o comentário
Compartilhar em outros sites

Posts Recomendados

  • 0

se eu não me engano você pode usar

 

vocation="3, 7"

 

ex:

 

<list type="female" looktype="136" name="Elf" vocation="3, 7"/>

Link para o comentário
Compartilhar em outros sites

  • 0

@Folspa

Como assim?

 

@Topic

Deu erro:

Unable to load outfits.

 

 

 

 

POST NÚMERO 600 FUUCCKKK YEAAAAHHHHHH

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

  • 0

Tentei, e todas as classes conseguem escolher =/

Botei assim:

 <outfit id="28" premium="0">
       <list type="female" looktype="159" name="Elf" vocation="3"/> --136
       <list type="male" looktype="159" name="Elf" vocation="3"/>   --128
   </outfit>

Link para o comentário
Compartilhar em outros sites

  • 0

<outfit id="28" premium="0" quest="40852">

<list type="female" looktype="159" name="Elf"/>

<list type="male" looktype="159" name="Elf"/>

</outfit>

 

Dwarfs (knights) ainda podem ser elfos =/

 

UP!

Alguem pode responder? Preciso muito disso! Valeu.

Link para o comentário
Compartilhar em outros sites

  • 0

@Windu

 

deixa assim no script

 

function onLogin(cid)

local x = {
[1] = 40850, -- sorc
[2] = 40851, -- druid
[3] = 40852, -- paladin
[4] = 40853, -- kina
[5] = 40854, -- master sorc
[6] = 40855, -- elder druid
[7] = 40856, -- royal paladin
[8] = 40857 -- elite kina
}

local v = x[getPlayerVocation(cid)]
if (not v) then
return true
end
for i = 1, #x do
setPlayerStorageValue(cid,x[i],0)
end
setPlayerStorageValue(cid, v, 1)
return TRUE
end

 

 


<outfit id="28" quest="40852">
<list type="female" looktype="159" name="Elf"/>
<list type="male" looktype="159" name="Elf"/> 
</outfit>

 

no caso só paladin vai poder usar essa outfit

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

  • 0

@Vodkart

 

creaturescripts.xml

<?xml version="1.0"?>
<creaturescripts>
   <event name="PlayerLogin" type="login" script="login.lua"/>
   <event name="SendLoginInfo" type="login" script="sendlogininfo.lua"/>
   <event name="RemoveBlesses" type="die" script="removeblesses.lua"/>
   <event name="Give_Bag_After_Death" type="die" script="give_bag_after_death.lua"/>
   <event name="ExpStage" type="advance" script="exp_stage.lua"/>
   <event type="login" name="Out" script="Vocation_Outfit.lua"/>
   <!--event name="PlayerLook" type="look" script="look.lua"/-->
</creaturescripts>

 

Vocation_Outfit.lua

function onLogin(cid)
local x = {
[1] = 40850, -- sorc
[2] = 40851, -- druid
[3] = 40852, -- paladin
[4] = 40853, -- kina
[5] = 40854, -- master sorc
[6] = 40855, -- elder druid
[7] = 40856, -- royal paladin
[8] = 40857 -- elite kina
}
local v = x[getPlayerVocation(cid)]
if (not v) then
return true
end
for i = 1, #x do
setPlayerStorageValue(cid,x[i],0)
end
setPlayerStorageValue(cid, v, 1)
return TRUE
end

 

outfits.xml

    <outfit id="28" quest="40852">
	    <list type="female" looktype="159" name="Elf"/>
	    <list type="male" looktype="159" name="Elf"/>
   </outfit>

 

Mesmo assim todas as vocations tem a opção de escolher o outfit elf =/

Ve se tem algo errado ae =(

Valeu!

 

Alguem ve algo errado?

Link para o comentário
Compartilhar em outros sites

  • 0

aqui funcionou, cada um usa a sua outfit, olha como eu deixei no meu outfit.xml

 

 

<?xml version="1.0"?>
<outfits>
<outfit id="1">
<list gender="0" lookType="136" name="Citizen"/>
<list gender="1" lookType="128" name="Citizen"/>
</outfit>

<outfit id="2" quest="40852">
<list gender="0" lookType="137" name="Hunter"/>
<list gender="1" lookType="129" name="Hunter"/>
</outfit>

<outfit id="3" quest="40850">
<list gender="0" lookType="138" name="Mage"/>
<list gender="1" lookType="130" name="Mage"/>
</outfit>

<outfit id="4" quest="40853">
<list gender="0" lookType="139" name="Knight"/>
<list gender="1" lookType="131" name="Knight"/>
</outfit>

<outfit id="5" quest="40857">
<list gender="0" lookType="140" name="Noblewoman"/>
<list gender="1" lookType="132" name="Nobleman"/>
</outfit>

<outfit id="6" quest="40851">
<list gender="0" lookType="141" name="Summoner"/>
<list gender="1" lookType="133" name="Summoner"/>
</outfit>

<outfit id="7" quest="40853">
<list gender="0" lookType="142" name="Warrior"/>
<list gender="1" lookType="134" name="Warrior"/>
</outfit>

<outfit id="8" quest="40857">
<list gender="0" lookType="147" name="Barbarian"/>
<list gender="1" lookType="143" name="Barbarian"/>
</outfit>

<outfit id="9" quest="40851">
<list gender="0" lookType="148" name="Druid"/>
<list gender="1" lookType="144" name="Druid"/>
</outfit>

<outfit id="10" quest="40850">
<list gender="0" lookType="149" name="Wizard"/>
<list gender="1" lookType="145" name="Wizard"/>
</outfit>

<outfit id="11" quest="40852">
<list gender="0" lookType="150" name="Oriental"/>
<list gender="1" lookType="146" name="Oriental"/>
</outfit>

<outfit id="12" quest="40857">
<list gender="0" lookType="155" name="Pirate"/>
<list gender="1" lookType="151" name="Pirate"/>
</outfit>

<outfit id="13" quest="40856">
<list gender="0" lookType="156" name="Assassin"/>
<list gender="1" lookType="152" name="Assassin"/>
</outfit>

<outfit id="14" quest="40854">
<list gender="0" lookType="157" name="Beggar"/>
<list gender="1" lookType="153" name="Beggar"/>
</outfit>

<outfit id="15" quest="40855">
<list gender="0" lookType="158" name="Shaman"/>
<list gender="1" lookType="154" name="Shaman"/>
</outfit>

<outfit id="16" quest="40854">
<list gender="0" lookType="252" name="Norsewoman"/>
<list gender="1" lookType="251" name="Norseman"/>
</outfit>

<outfit id="17" quest="40853">
<list gender="0" lookType="269" name="Nightmare"/>
<list gender="1" lookType="268" name="Nightmare"/>
</outfit>

<outfit id="18" quest="40854">
<list gender="0" lookType="270" name="Jester"/>
<list gender="1" lookType="273" name="Jester"/>
</outfit>

<outfit id="19" quest="40855">
<list gender="0" lookType="279" name="Brotherhood"/>
<list gender="1" lookType="278" name="Brotherhood"/>
</outfit>

<outfit id="20" quest="40856">
<list gender="0" lookType="288" name="Demonhunter"/>
<list gender="1" lookType="289" name="Demonhunter"/>
</outfit>

<outfit id="21" quest="40854">
<list gender="0" lookType="324" name="Yalaharian"/>
<list gender="1" lookType="325" name="Yalaharian"/>
</outfit>

<outfit id="22" quest="40856">
<list gender="0" lookType="336" name="Warmaster"/>
<list gender="1" lookType="335" name="Warmaster"/>
</outfit>

<outfit id="23" default="0">
<list gender="0" lookType="329" name="Wife"/>
<list gender="1" lookType="328" name="Husband"/>
</outfit>

<outfit id="24" quest="40857">
<list gender="0" lookType="366" name="Wayfarer"/>
<list gender="1" lookType="367" name="Wayfarer"/>
</outfit>
</outfits>

 

Link para o comentário
Compartilhar em outros sites

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