No lugar de weapon type tem que ser algo do tipo, weapon,shield, jewerls, ring!
e no valor, tem que ser numeros mano!
<attribute key="weaponType" value="shield" />
<attribute key="weapon" value="500" />
pelo que eu me lembre é assim mesmo!
info
Group: Campones
Joined: 08/12/13
Posts: 2
Reputation: 0
Tibia Character: Oohlavrac

No lugar de weapon type tem que ser algo do tipo, weapon,shield, jewerls, ring!
e no valor, tem que ser numeros mano!
<attribute key="weaponType" value="shield" />
<attribute key="weapon" value="500" />
pelo que eu me lembre é assim mesmo!
@up: lamento dizer que você está muito errado
@topic: você precisa registrar no items em weapons.xml
Edited Dezembro 9 by Dantarrixx
@up: lamento dizer que você está muito errado
@topic: você precisa registrar no items em weapons.xml
pera, tenho que registrar os shields como weapon?
meu português não é muito bom, mas eu vou tentar explicar o que fazer
weapons.xml:
armas são registrados aqui como você disse
meu erro, eu quis dizer movements.xml
você tem que registrar onEquipItem e onDeEquipItem para operar os bonus
então, digamos que eu queira adicionar o gladiator shield na lista. Como ficaria?
E pra criar itens específicos pra alguma vocação é do mesmo jeito? E restrição de level em armaduras/escudos/elmos?
Edited Dezembro 9 by baraket
Example:
<movevent event="DeEquip" itemid="7891" slot="feet" function="onDeEquipItem"/>
<movevent event="Equip" itemid="7891" slot="feet" function="onEquipItem">
<vocation name="Sorcerer"/>
<vocation name="Master Sorcerer" showInDescription="0"/>
<vocation name="Druid"/>
<vocation name="Elder Druid" showInDescription="0"/>
</movevent>
There are 2 movevents, 1 is equip, 1 deequip.
itemid = id of item in items.xml
slot = slot where item can be wore
vocationname = name of vocation that can wear the item
showindescription = this vocation is shown in description? (default = 1 = true. 0 = false).
That's it, hope you understand.
For your gladiator shield:
<movevent event="DeEquip" itemid="2517" slot="shield" function="onDeEquipItem"/>
<movevent event="Equip" itemid="2517" slot="shield" function="onEquipItem">
<vocation name="Knight"/>
<vocation name="Elite Knight" showInDescription="0"/>
</movevent>
Edited Dezembro 10 by Dantarrixx
Example:
<movevent event="DeEquip" itemid="7891" slot="feet" function="onDeEquipItem"/> <movevent event="Equip" itemid="7891" slot="feet" function="onEquipItem"> <vocation name="Sorcerer"/> <vocation name="Master Sorcerer" showInDescription="0"/> <vocation name="Druid"/> <vocation name="Elder Druid" showInDescription="0"/> </movevent>There are 2 movevents, 1 is equip, 1 deequip.
itemid = id of item in items.xml
slot = slot where item can be wore
vocationname = name of vocation that can wear the item
showindescription = this vocation is shown in description? (default = 1 = true. 0 = false).
That's it, hope you understand.
For your gladiator shield:
<movevent event="DeEquip" itemid="2517" slot="shield" function="onDeEquipItem"/> <movevent event="Equip" itemid="2517" slot="shield" function="onEquipItem"> <vocation name="Knight"/> <vocation name="Elite Knight" showInDescription="0"/> </movevent>
Example:
<movevent event="DeEquip" itemid="7891" slot="feet" function="onDeEquipItem"/> <movevent event="Equip" itemid="7891" slot="feet" function="onEquipItem"> <vocation name="Sorcerer"/> <vocation name="Master Sorcerer" showInDescription="0"/> <vocation name="Druid"/> <vocation name="Elder Druid" showInDescription="0"/> </movevent>There are 2 movevents, 1 is equip, 1 deequip.
itemid = id of item in items.xml
slot = slot where item can be wore
vocationname = name of vocation that can wear the item
showindescription = this vocation is shown in description? (default = 1 = true. 0 = false).
That's it, hope you understand.
For your gladiator shield:
<movevent event="DeEquip" itemid="2517" slot="shield" function="onDeEquipItem"/> <movevent event="Equip" itemid="2517" slot="shield" function="onEquipItem"> <vocation name="Knight"/> <vocation name="Elite Knight" showInDescription="0"/> </movevent>
I see, thanks ![]()
info
Group: Campones
Joined: 08/12/13
Posts: 6
Reputation: 0
Boa noite. Eu criei um ot há pouco tempo, e tô com alguns problemas pra atribuir stats nos itens.. Não consigo colocar bônus de ML em item nenhum, e também não consigo colocar nenhum stat (além de def) em shields. Vou colar aqui os scripts dos shields pra verem se há algo errado.
<attribute key="healthGain" value="240" />
</item>
Edited Dezembro 9 by baraket