SO
dúvida

Soft Boots acaba mesmo na backpack

Por soliveiraiago, 03 de fev. de 2013 em Scripts

soft
boots
duvida
ot
8.6
styller
6
2.8k
03 de fevereiro de 2013 às 03:47

Galera, estava editando uma boots, só que mexi em algo que não sei o que foi que a Soft Boots acaba mesmo estando na backpack.

 

post-364021-0-62153700-1359870430.jpg

 

Pelo amor de Deus, me ajudem a resolver isso, rs...

 

Abraços.

GearsG
03 de fevereiro de 2013 às 03:55

Pasta do ot/data/items/items.xml

Lá dentro vai ter 1 arquivo chamado items.xml abre ele e procura pela soft boots

 

   <item id="2640" article="a" name="pair of soft boots">
       <attribute key="weight" value="800"/>
       <attribute key="slotType" value="feet"/>
       <attribute key="decayTo" value="10021"/>
       <attribute key="transformDeEquipTo" value="6132"/>
       <attribute key="duration" value="14400"/>
       <attribute key="healthGain" value="1"/>
       <attribute key="healthTicks" value="2000"/>
       <attribute key="manaGain" value="2"/>
       <attribute key="manaTicks" value="1000"/>
       <attribute key="showduration" value="1"/>
       <attribute key="showattributes" value="1"/>
   </item>

 

Vc vai encontrar algo parecido com isso ai :)

é so mudar essa linha aqui

  	 <attribute key="duration" value="14400"/>

Para a duração da soft :)

Ou então, use o mesmo script q eu te passei, basta modificar a soft do seu otserver por essa que eu te pssei *-*

juliok80J
03 de fevereiro de 2013 às 11:01

Olhando a imagem, a soft permanece com o ID 2640 mesmo na backpack... você esqueceu de colocar o atributo transformDeEquipTo no ID 2640.

 

Então, no seu items.xml deve ficar assim:

 

Soft equipada:

<item id="2640" article="a" name="pair of soft boots">
 <attribute key="weight" value="800" />
 <attribute key="slotType" value="feet" />
 <attribute key="decayTo" value="10021" />
 <attribute key="transformDeEquipTo" value="6132" />
 <attribute key="duration" value="14400" />
 <attribute key="healthGain" value="25" />
 <attribute key="healthTicks" value="2000" />
 <attribute key="manaGain" value="25" />
 <attribute key="manaTicks" value="1000" />
 <attribute key="showduration" value="1" />
</item>

 

Soft Desequipada:

<item id="6132" article="a" name="pair of soft boots">
 <attribute key="weight" value="800" />
 <attribute key="slotType" value="feet" />
 <attribute key="transformEquipTo" value="2640" />
 <attribute key="stopduration" value="1" />
 <attribute key="showduration" value="1" />
</item>

 

E no seu movements.xml deve constar os dois itens, ficando assim:

<movevent type="Equip" itemid="6132" slot="feet" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="6132" slot="feet" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="2640" slot="feet" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2640" slot="feet" event="function" value="onDeEquipItem"/>

 

Abraços!

Editado Fevereiro 3 por juliok80

03 de fevereiro de 2013 às 12:36

Perfeito, galera! Muito obrigado mesmo!

LTKReturnsL
03 de fevereiro de 2013 às 12:41

Sanado, Reportado !

SlicerS
03 de fevereiro de 2013 às 12:54

sanado, movido