Ir para conteúdo
  • 0

[PEDIDO] Script : Cada vocaçao tem seu outfit!


Nimaro22

Pergunta

Olá, preciso de um script onde cada vocaçao tenha seu proprio outfit.

EX: Vocation id 1 Looktype 18

Vocation id 2 Looktype 20...

Assim por diante.

Se alguem puder me ajudar com isso ficarei muito grato, posso contribuir de alguma forma na area de Spriting!

Link para o comentário
Compartilhar em outros sites

Posts Recomendados

  • 0
<?xml version="1.0"?>
<outfits>
        <outfit id="1" storageiId = "5555" storageValue = "1">
                <list gender="0" lookType="136" name="Citizen">
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                        </list>
                <list gender="1" lookType="128" name="Citizen">
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                        </list>
        </outfit>


        <outfit id="2" storageiId = "5555" storageValue = "2">
                <list gender="0" lookType="137" name="Hunter">
                <skills dist="3"/>
                </list>
                <list gender="1" lookType="129" name="Hunter">
                <skills dist="3"/>
                </list>
        </outfit>


        <outfit id="3" storageiId = "5555" storageValue = "3">
                <list gender="0" lookType="138" name="Mage">
                <stats magLevel="2"/>
                <stats maxMana="200"/>
                </list>
                <list gender="1" lookType="130" name="Mage">
                <stats magLevel="2"/>
                <stats maxMana="200"/>
                </list>
        </outfit>


        <outfit id="4" storageiId = "5555" storageValue = "4">
                <list gender="0" lookType="139" name="Knight">
                <skills sword="3"/>
                </list>
                <list gender="1" lookType="131" name="Knight">
                <skills sword="3"/>
                </list>
        </outfit>


        <outfit id="5" premium="no" storageiId = "5555" storageValue = "5">
                <list gender="0" lookType="140" name="Noblewoman">
                <skills club="3"/>
                </list>
                <list gender="1" lookType="132" name="Nobleman">
                <skills club="3"/>
                </list>
        </outfit>


        <outfit id="6" premium="no">
                <list gender="0" lookType="141" name="Summoner">
                <stats magLevel="2"/>
                <stats maxMana="100"/>
                </list>
                <list gender="1" lookType="133" name="Summoner">
                <stats magLevel="2"/>
                <stats maxMana="100"/>
                </list>
        </outfit>


        <outfit id="7" premium="no">
                <list gender="0" lookType="142" name="Warrior">
                <skills sword="3"/>
                </list>
                <list gender="1" lookType="134" name="Warrior">
                <skills sword="3"/>
                </list>
        </outfit>


        <outfit id="8" premium="no">
                <list gender="0" lookType="147" name="Barbarian">
                <skills axe="3"/>
                </list>
                <list gender="1" lookType="143" name="Barbarian">
                <skills axe="3"/>
                </list>
        </outfit>


        <outfit id="9" premium="no">
                <list gender="0" lookType="148" name="Druid">
                <stats magLevel="2"/>
                </list>
                <list gender="1" lookType="144" name="Druid">
                <stats magLevel="2"/>
                </list>
        </outfit>


        <outfit id="10" premium="no">
                <list gender="0" lookType="149" name="Wizard">
                <stats magLevel="1"/>
                <stats maxMana="100"/>
                </list>
                <list gender="1" lookType="145" name="Wizard">
                <stats magLevel="1"/>
                <stats maxMana="100"/>
                </list>
        </outfit>


        <outfit id="11" premium="no">
                <list gender="0" lookType="150" name="Oriental">
                <attribute speed="5"/>
                <stats maxHealth="200"/>
                <stats maxMana="200"/>
                        </list>
                <list gender="1" lookType="146" name="Oriental">
                <attribute speed="5"/>
                <stats maxHealth="200"/>
                <stats maxMana="200"/>
                        </list>
        </outfit>


        <outfit id="12" premium="no">
                <list gender="0" lookType="155" name="Pirate">
                <stats maxHealth="100"/>
                <skills club="3"/>
                </list>
                <list gender="1" lookType="151" name="Pirate">
                <stats maxHealth="100"/>
                <skills club="3"/>
                </list>
        </outfit>


        <outfit id="13" premium="no">
                <list gender="0" lookType="156" name="Assassin">
                <attribute speed="5"/>
                <skills dist="2"/>
                        </list>
                <list gender="1" lookType="152" name="Assassin">
                <attribute speed="5"/>
                <skills dist="2"/>
                        </list>
        </outfit>


        <outfit id="14" premium="no" >
                <list gender="0" lookType="157" name="Beggar">
                <stats maxHealth="200"/>
                </list>
                <list gender="1" lookType="153" name="Beggar">
                <stats maxHealth="200"/>
                </list>
        </outfit>


        <outfit id="15" premium="no" >
                <list gender="0" lookType="158" name="Shaman">
                <stats magLevel="2"/>
                </list>
                <list gender="1" lookType="154" name="Shaman">
                <stats magLevel="2"/>
                </list>
        </outfit>


        <outfit id="16" premium="no" >
                <list gender="0" lookType="252" name="Norsewoman">
                <skills shielding="2"/>
                <stats maxHealth="200"/>
                </list>
                <list gender="1" lookType="251" name="Norseman">
                <skills shielding="2"/>
                <stats maxHealth="200"/>
                </list>
        </outfit>


        <outfit id="17" premium="no" >
                <list gender="0" lookType="269" name="Nightmare">
                <skills shielding="3"/>
                </list>
                <list gender="1" lookType="268" name="Nightmare">
                <skills shielding="3"/>
                </list>
        </outfit>


        <outfit id="18" premium="no">
                <list gender="0" lookType="270" name="Jester">
                <stats maxMana="100"/>
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                </list>
                <list gender="1" lookType="273" name="Jester">
                <stats maxMana="100"/>
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                </list>
        </outfit>


        <outfit id="19" premium="no">
                <list gender="0" lookType="279" name="Brotherhood">
                <reflect percentAll="20"/>
                <stats magLevel="1"/>
                <stats maxHealth="100"/>
                </list>
                <list gender="1" lookType="278" name="Brotherhood">
                <stats magLevel="1"/>
                <stats maxHealth="100"/>
                </list>
        </outfit>


        <outfit id="20" premium="no" >
                <list gender="0" lookType="288" name="Demonhunter">
                <attribute speed="10"/>
                <stats maxHealth="200"/>
                </list>
                <list gender="1" lookType="289" name="Demonhunter">
                <attribute speed="10"/>
                <stats maxHealth="200"/>
                </list>
        </outfit>


        <outfit id="21" premium="no" >
                <list gender="0" lookType="324" name="Yalaharian">
                <attribute speed="5"/>
                <stats magLevel="2"/>
                </list>
                <list gender="1" lookType="325" name="Yalaharian">
                <attribute speed="5"/>
                <stats magLevel="2"/>
                </list>
        </outfit>


        <outfit id="22" premium="no">
                <list gender="0" lookType="336" name="Warmaster">
                <stats maxMana="100"/>
                <attribute speed="15"/>
                <stats maxHealth="100"/>
                <stats magLevel="1"/>
                </list>
                <list gender="1" lookType="335" name="Warmaster">
                <stats maxMana="100"/>
                <attribute speed="15"/>
                <stats maxHealth="100"/>
                <stats magLevel="1"/>
                </list>
        </outfit>


        <outfit id="23" premium="no">
                <list gender="0" lookType="329" name="Wedding"/>
                <list gender="1" lookType="328" name="Wedding"/>
        </outfit>


<outfit id="24" premium="yes">
                <list gender="0" lookType="366" name="Wayfarer">
                <attribute speed="10"/>
                <stats maxHealth="100"/>
                <skills shielding="2"/>
                </list>
                <list gender="1" lookType="367" name="Wayfarer">
                <attribute speed="10"/>
                <stats maxHealth="100"/>
                <skills shielding="2"/>
                </list>
        </outfit>


<outfit id="34" access="3" premium="yes">
                <list gender="0-3" lookType="75" name="Gamemaster"/>
        </outfit>


        <outfit id="35" access="4" premium="no">
                <list gender="0-3" lookType="266" name="Community Manager"/>
        </outfit>
        <outfit id="36" access="5" premium="yes">
                <list gender="0-3" lookType="302" name="God"/>
        </outfit>
</outfits>

 

Link para o comentário
Compartilhar em outros sites

  • 0

Então cara, la no outfits.xml faça isso para cada outfit:

 

<outfit id="ID DO OUTFIT" storageId = "5555" storageValue="VOC ID">
<list gender="0" lookType="LOOKTYPE FEM" name="NOME" speed="25"/>
<list gender="1" lookType="LOOKTYPE MASC" name="NOME" speed="25"/>
</outfit>
<outfit id="ID DO OUTFIT" storageId = "5555" storageValue="VOC ID">
<list gender="0" lookType="LOOKTYPE FEM" name="NOME" speed="25"/>
<list gender="1" lookType="LOOKTYPE MASC" name="NOME" speed="25"/>
</outfit>
<outfit id="ID DO OUTFIT" storageId = "5555" storageValue="VOC ID">
<list gender="0" lookType="LOOKTYPE FEM" name="NOME" speed="25"/>
<list gender="1" lookType="LOOKTYPE MASC" name="NOME" speed="25"/>
</outfit>
Em login.lua (la em creature scripts) coloque dentro de onLogin:
setPlayerStorageValue(cid, 5555, getPlayerVocation(cid))
Pronto.
Abraços,

 

Link para o comentário
Compartilhar em outros sites

  • 0

Então cara, la no outfits.xml faça isso para cada outfit:

 

<outfit id="ID DO OUTFIT" storageId = "5555" storageValue="VOC ID">
<list gender="0" lookType="LOOKTYPE FEM" name="NOME" speed="25"/>
<list gender="1" lookType="LOOKTYPE MASC" name="NOME" speed="25"/>
</outfit>
<outfit id="ID DO OUTFIT" storageId = "5555" storageValue="VOC ID">
<list gender="0" lookType="LOOKTYPE FEM" name="NOME" speed="25"/>
<list gender="1" lookType="LOOKTYPE MASC" name="NOME" speed="25"/>
</outfit>
<outfit id="ID DO OUTFIT" storageId = "5555" storageValue="VOC ID">
<list gender="0" lookType="LOOKTYPE FEM" name="NOME" speed="25"/>
<list gender="1" lookType="LOOKTYPE MASC" name="NOME" speed="25"/>
</outfit>
Em login.lua (la em creature scripts) coloque dentro de onLogin:
setPlayerStorageValue(cid, 5555, getPlayerVocation(cid))
Pronto.
Abraços,

 

Nao sei se fiz certo, fui no arquivo outfits.xml substitui todos por esse novo script e coloquei o id do outfit/looktype/voc, e tambem fiz o processo no login.lua mas mesmo assim da erro ao iniciar o server.

 

post-389266-0-88123000-1453248834_thumb.png

Link para o comentário
Compartilhar em outros sites

  • 0

Nao sei se fiz certo, fui no arquivo outfits.xml substitui todos por esse novo script e coloquei o id do outfit/looktype/voc, e tambem fiz o processo no login.lua mas mesmo assim da erro ao iniciar o server.

 

Não cara.. huaheuahe

Eu mandei um exemplo, era pra voce substituir os ids das vocações, o nome do outfit masc e fem, o id do outfit e o looktype.

Link para o comentário
Compartilhar em outros sites

  • 0

Não cara.. huaheuahe

Eu mandei um exemplo, era pra voce substituir os ids das vocações, o nome do outfit masc e fem, o id do outfit e o looktype.

Eu sei, eu fiz isso!

O script antigo era desse jeito:

 

<outfit id="1">

<list gender="0" lookType="136" name="Citizen">
<attribute speed="5"/>
<stats maxHealth="100"/>
</list>
<list gender="1" lookType="128" name="Citizen">
<attribute speed="5"/>
<stats maxHealth="100"/>
</list>
Eu substitui pelo seu modelo:
<outfit id="1" storageId = "5555" storageValue="1">
<list gender="0" lookType="18" name="NOME" speed="25"/>
<list gender="1" lookType="18" name="NOME" speed="25"/>
</outfit>
E mesmo assim o erro ocorreu!
Link para o comentário
Compartilhar em outros sites

  • 0

Não cara, era pra você substituir por:

 

<outfit id="1" storageId = "5555" storageValue="1">

<list gender="0" lookType="136" name="Citizen">
<attribute speed="5"/>
<stats maxHealth="100"/>
</list>
<list gender="1" lookType="128" name="Citizen">
<attribute speed="5"/>
<stats maxHealth="100"/>
</list>
Link para o comentário
Compartilhar em outros sites

  • 0

 

Não cara, era pra você substituir por:

 

<outfit id="1" storageId = "5555" storageValue="1">

<list gender="0" lookType="136" name="Citizen">
<attribute speed="5"/>
<stats maxHealth="100"/>
</list>
<list gender="1" lookType="128" name="Citizen">
<attribute speed="5"/>
<stats maxHealth="100"/>
</list>

 

Entao! Foi isso que eu fiz, viu a imagem que mandei na resposta anterior? Lá mostra como ficou o arquivo apos as alteraçoes e tambem do login.lua

E tambem mostra qual o erro que ocorreu ao abrir o server.

Link para o comentário
Compartilhar em outros sites

  • 0

Pela imagem vc chamou tudo de NOME.

Outro erro foi que voce repetiu a tag <outfits> ela é só no inicio e seu fechamento no final </outfits>

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

  • 0

Vou repetir pq eu editei la e vc nao deve ter visto, você repetiu a tag <outfits> varias vezes.. ela so deve vir uma vez no inicio, antes do primeiro outfit e sua tag fechando ao final de tudo </outfits>

Link para o comentário
Compartilhar em outros sites

  • 0

Vou repetir pq eu editei la e vc nao deve ter visto, você repetiu a tag <outfits> varias vezes.. ela so deve vir uma vez no inicio, antes do primeiro outfit e sua tag fechando ao final de tudo </outfits>

<outfit id="3">
<list gender="0" lookType="138" name="Mage">
<stats magLevel="2"/>
<stats maxMana="200"/>
</list>
<list gender="1" lookType="130" name="Mage">
<stats magLevel="2"/>
<stats maxMana="200"/>
</list>
</outfit>
<outfit id="4">
<list gender="0" lookType="139" name="Knight">
<skills sword="3"/>
</list>
<list gender="1" lookType="131" name="Knight">
<skills sword="3"/>
</list>
</outfit>
<outfit id="5" premium="no">
<list gender="0" lookType="140" name="Noblewoman">
<skills club="3"/>
</list>
<list gender="1" lookType="132" name="Nobleman">
<skills club="3"/>
</list>
</outfit>
<outfit id="6" premium="no">
<list gender="0" lookType="141" name="Summoner">
<stats magLevel="2"/>
<stats maxMana="100"/>
</list>
<list gender="1" lookType="133" name="Summoner">
<stats magLevel="2"/>
<stats maxMana="100"/>
</list>
</outfit>
<outfit id="7" premium="no">
<list gender="0" lookType="142" name="Warrior">
<skills sword="3"/>
</list>
<list gender="1" lookType="134" name="Warrior">
<skills sword="3"/>
</list>
</outfit>
<outfit id="8" premium="no">
<list gender="0" lookType="147" name="Barbarian">
<skills axe="3"/>
</list>
<list gender="1" lookType="143" name="Barbarian">
<skills axe="3"/>
</list>
</outfit>
Mas veja, no antigo tambem se repete,entao devo só por a tag no inicio e no fim da script? voce tem TeamViewer? Ai se nao fosse incomodo voce poderia dar uma olhada e ver certinho!
Link para o comentário
Compartilhar em outros sites

  • 0

São duas tags diferentes cara, a tag <outfit> e a tag <outfits> a tag no singular se repete a no plural nao. Voce esta repetindo as duas.
Faz assim, posta seu outfit.xml aqui que eu vou editar ele.

Link para o comentário
Compartilhar em outros sites

  • 0

São duas tags diferentes cara, a tag <outfit> e a tag <outfits> a tag no singular se repete a no plural nao. Voce esta repetindo as duas.

Faz assim, posta seu outfit.xml aqui que eu vou editar ele.

Ta ai, desculpa estou começando agora com scripts... Nao sei o que fiz errado :/

outfits.xml

Link para o comentário
Compartilhar em outros sites

  • 0

 

<?xml version="1.0"?>
<outfits>
        <outfit id="1" storageiId = "5555" storageValue = "1">
                <list gender="0" lookType="136" name="Citizen">
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                        </list>
                <list gender="1" lookType="128" name="Citizen">
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                        </list>
        </outfit>


        <outfit id="2" storageiId = "5555" storageValue = "2">
                <list gender="0" lookType="137" name="Hunter">
                <skills dist="3"/>
                </list>
                <list gender="1" lookType="129" name="Hunter">
                <skills dist="3"/>
                </list>
        </outfit>


        <outfit id="3" storageiId = "5555" storageValue = "3">
                <list gender="0" lookType="138" name="Mage">
                <stats magLevel="2"/>
                <stats maxMana="200"/>
                </list>
                <list gender="1" lookType="130" name="Mage">
                <stats magLevel="2"/>
                <stats maxMana="200"/>
                </list>
        </outfit>


        <outfit id="4" storageiId = "5555" storageValue = "4">
                <list gender="0" lookType="139" name="Knight">
                <skills sword="3"/>
                </list>
                <list gender="1" lookType="131" name="Knight">
                <skills sword="3"/>
                </list>
        </outfit>


        <outfit id="5" premium="no" storageiId = "5555" storageValue = "5">
                <list gender="0" lookType="140" name="Noblewoman">
                <skills club="3"/>
                </list>
                <list gender="1" lookType="132" name="Nobleman">
                <skills club="3"/>
                </list>
        </outfit>


        <outfit id="6" premium="no">
                <list gender="0" lookType="141" name="Summoner">
                <stats magLevel="2"/>
                <stats maxMana="100"/>
                </list>
                <list gender="1" lookType="133" name="Summoner">
                <stats magLevel="2"/>
                <stats maxMana="100"/>
                </list>
        </outfit>


        <outfit id="7" premium="no">
                <list gender="0" lookType="142" name="Warrior">
                <skills sword="3"/>
                </list>
                <list gender="1" lookType="134" name="Warrior">
                <skills sword="3"/>
                </list>
        </outfit>


        <outfit id="8" premium="no">
                <list gender="0" lookType="147" name="Barbarian">
                <skills axe="3"/>
                </list>
                <list gender="1" lookType="143" name="Barbarian">
                <skills axe="3"/>
                </list>
        </outfit>


        <outfit id="9" premium="no">
                <list gender="0" lookType="148" name="Druid">
                <stats magLevel="2"/>
                </list>
                <list gender="1" lookType="144" name="Druid">
                <stats magLevel="2"/>
                </list>
        </outfit>


        <outfit id="10" premium="no">
                <list gender="0" lookType="149" name="Wizard">
                <stats magLevel="1"/>
                <stats maxMana="100"/>
                </list>
                <list gender="1" lookType="145" name="Wizard">
                <stats magLevel="1"/>
                <stats maxMana="100"/>
                </list>
        </outfit>


        <outfit id="11" premium="no">
                <list gender="0" lookType="150" name="Oriental">
                <attribute speed="5"/>
                <stats maxHealth="200"/>
                <stats maxMana="200"/>
                        </list>
                <list gender="1" lookType="146" name="Oriental">
                <attribute speed="5"/>
                <stats maxHealth="200"/>
                <stats maxMana="200"/>
                        </list>
        </outfit>


        <outfit id="12" premium="no">
                <list gender="0" lookType="155" name="Pirate">
                <stats maxHealth="100"/>
                <skills club="3"/>
                </list>
                <list gender="1" lookType="151" name="Pirate">
                <stats maxHealth="100"/>
                <skills club="3"/>
                </list>
        </outfit>


        <outfit id="13" premium="no">
                <list gender="0" lookType="156" name="Assassin">
                <attribute speed="5"/>
                <skills dist="2"/>
                        </list>
                <list gender="1" lookType="152" name="Assassin">
                <attribute speed="5"/>
                <skills dist="2"/>
                        </list>
        </outfit>


        <outfit id="14" premium="no" >
                <list gender="0" lookType="157" name="Beggar">
                <stats maxHealth="200"/>
                </list>
                <list gender="1" lookType="153" name="Beggar">
                <stats maxHealth="200"/>
                </list>
        </outfit>


        <outfit id="15" premium="no" >
                <list gender="0" lookType="158" name="Shaman">
                <stats magLevel="2"/>
                </list>
                <list gender="1" lookType="154" name="Shaman">
                <stats magLevel="2"/>
                </list>
        </outfit>


        <outfit id="16" premium="no" >
                <list gender="0" lookType="252" name="Norsewoman">
                <skills shielding="2"/>
                <stats maxHealth="200"/>
                </list>
                <list gender="1" lookType="251" name="Norseman">
                <skills shielding="2"/>
                <stats maxHealth="200"/>
                </list>
        </outfit>


        <outfit id="17" premium="no" >
                <list gender="0" lookType="269" name="Nightmare">
                <skills shielding="3"/>
                </list>
                <list gender="1" lookType="268" name="Nightmare">
                <skills shielding="3"/>
                </list>
        </outfit>


        <outfit id="18" premium="no">
                <list gender="0" lookType="270" name="Jester">
                <stats maxMana="100"/>
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                </list>
                <list gender="1" lookType="273" name="Jester">
                <stats maxMana="100"/>
                <attribute speed="5"/>
                <stats maxHealth="100"/>
                </list>
        </outfit>


        <outfit id="19" premium="no">
                <list gender="0" lookType="279" name="Brotherhood">
                <reflect percentAll="20"/>
                <stats magLevel="1"/>
                <stats maxHealth="100"/>
                </list>
                <list gender="1" lookType="278" name="Brotherhood">
                <stats magLevel="1"/>
                <stats maxHealth="100"/>
                </list>
        </outfit>


        <outfit id="20" premium="no" >
                <list gender="0" lookType="288" name="Demonhunter">
                <attribute speed="10"/>
                <stats maxHealth="200"/>
                </list>
                <list gender="1" lookType="289" name="Demonhunter">
                <attribute speed="10"/>
                <stats maxHealth="200"/>
                </list>
        </outfit>


        <outfit id="21" premium="no" >
                <list gender="0" lookType="324" name="Yalaharian">
                <attribute speed="5"/>
                <stats magLevel="2"/>
                </list>
                <list gender="1" lookType="325" name="Yalaharian">
                <attribute speed="5"/>
                <stats magLevel="2"/>
                </list>
        </outfit>


        <outfit id="22" premium="no">
                <list gender="0" lookType="336" name="Warmaster">
                <stats maxMana="100"/>
                <attribute speed="15"/>
                <stats maxHealth="100"/>
                <stats magLevel="1"/>
                </list>
                <list gender="1" lookType="335" name="Warmaster">
                <stats maxMana="100"/>
                <attribute speed="15"/>
                <stats maxHealth="100"/>
                <stats magLevel="1"/>
                </list>
        </outfit>


        <outfit id="23" premium="no">
                <list gender="0" lookType="329" name="Wedding"/>
                <list gender="1" lookType="328" name="Wedding"/>
        </outfit>


<outfit id="24" premium="yes">
                <list gender="0" lookType="366" name="Wayfarer">
                <attribute speed="10"/>
                <stats maxHealth="100"/>
                <skills shielding="2"/>
                </list>
                <list gender="1" lookType="367" name="Wayfarer">
                <attribute speed="10"/>
                <stats maxHealth="100"/>
                <skills shielding="2"/>
                </list>
        </outfit>


<outfit id="34" access="3" premium="yes">
                <list gender="0-3" lookType="75" name="Gamemaster"/>
        </outfit>


        <outfit id="35" access="4" premium="no">
                <list gender="0-3" lookType="266" name="Community Manager"/>
        </outfit>
        <outfit id="36" access="5" premium="yes">
                <list gender="0-3" lookType="302" name="God"/>
        </outfit>
</outfits>

 

 

Agora nao da erro, mas tambem nao funciona... Eu crio a vocaçao que seria a ID 1 e ela loga como citizen mesmo nao alterando o outfit ao logar!

Ta complicado, Script nao é facil =/

Link para o comentário
Compartilhar em outros sites

×
×
  • Criar Novo...