Jump to content
  • 0

Soft Boots acaba mesmo na backpack


soliveiraiago

Question

5 answers to this question

Recommended Posts

  • 0

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 *-*

Link to comment
Share on other sites

  • 0

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!

Edited by juliok80
Link to comment
Share on other sites

×
×
  • Create New...