- Função -
Neste script, sua Soft Boots terá a função de life ring e ring of healing, ou seja, durante certo tempo, a Soft Boots irá renegerar Hp/Mp do usuário
Só que ao invés de colocar no lugar dos ring
Você irá colocar a Soft Boots no lugar das boots
Quando acabar o tempo, ela se transformará na Worn Soft Boots
Que no Tibia Rl, pode ser recarregada por 10k
- Script -
Abra o arquivo movements.xml, na pasta data/movements
E adicione esta linha no final:
<movevent event="Equip" itemid="6132" slot="feet" function="onEquipItem" />
<movevent event="Equip" itemid="2640" slot="feet" function="onEquipItem" />
<movevent event="DeEquip" itemid="2640" slot="feet" function="onDeEquipItem" />
Agora abra o arquivo items.xml, na pasta data/items
E aperte Ctrl + F e procure por 2640
Você achará algo mais ou menos assim:
<item id="2640" name="NOME DA BOTA">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
</item>
Cole em cima disto, isto aqui:
<item id="2640" name="soft boots">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
<attribute key="decayTo" value="6530"/>
<attribute key="transformDeEquipTo" value="6132"/>
<attribute key="duration" value="5000"/>
<attribute key="healthGain" value="1"/>
<attribute key="healthTicks" value="3000"/>
<attribute key="manaGain" value="4"/>
<attribute key="manaTicks" value="3000"/>
<attribute key="showduration" value="1"/>
</item>
Agora, faça seus ajustes:
<attribute key="duration" value="XXXX"/>
** A duração de regeneração total, no Tibia Rl, o tempo é de 240 minutos
<attribute key="healthGain" value="1"/>
** O quando de Hp será regenerado
<attribute key="healthTicks" value="3000"/>** É o tempo para cada regeneração, que no caso é 3s
<attribute key="manaGain" value="4"/>
** O quanto de Mana será regenerado
<attribute key="manaTicks" value="3000"/>
** É o tempo para cada regeneração, que no caso é 3s
Ainda no arquivo items.xml
Aperte Ctrl + F e procure por 6132
Você irá achar algo mais ou menos assim:
<item id="6132" name="soft boots">
<attribute key="weight" value="800"/>
<attribute key="slotType" value="feet"/>
</item>
Em cima disto, cole isto que irei falar aqui em baixo
<item id="6132" name="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>
Agora procure pelo ID 6530
E quando achar, mude para isto:
<item id="6530" name="worn soft boots">
<attribute key="weight" value="800"/>
<attribute key="description" value=" Someone specialised in shoes might be able to repair them for you."/>
</item>
- Testes Feitos -
Testado em Evolutions 0.7.6 [7.92]
Testado agora em XikeOTS [7.9]
OBS.:
Para fazer isto no XikeOTS
Ignore a parte de achar o ID, somente adicione a linhas dos ID's:
2640 e 6132
E lembrando de adicionar a linha no movements.xml
OBS2.:
Se quiser colocar tempo igual ao Tibia Real
Mude o duration para 14400
Término de mais um tutorial de script..Comentem, dê sugestoes, criticas, opinioes e etc! Até a próxima.
CRÉDITOS: Pedroddcunha
EDITADO E INTRODUZIDO POR: Salvatore