<attribute key="slotType" value="feet" /> -- boots
<attribute key="slotType" value="body"/> -- armor<attribute key="slotType" value="legs" /> -- legs
<attribute key="slotType" value="head" /> -- helmet
<attribute key="slotType" value="ring" /> -- ring
<attribute key="weaponType" value="shield" /> -- shield
<attribute key="weaponType" value="Wand" /> -- wnad
<attribute key="weaponType" value="sword" /> -- sword
<attribute key="weaponType" value="axe" /> -- axe
<attribute key="weaponType" value="club" /> -- club




info
Grupo: Campones
Registrado: 06/11/13
Posts: 99
Reputação: +2
Galera queria saber como faço para saber que um item que o player está usando é um helmet, ou uma armor, legs, shield, weapon, e etc.
Ex: Em item.xml os itens que são equipáveis possuem o atributo <attribute key="slotType" value="feet" /> que diz de qual slot ele é, quero saber como faço para descobrir se um item x possui atributo do tipo slot, lembrando que quero isso terá que ser em .LUA
<item id="2195" name="boots of haste"> <attribute key="weight" value="750" /> <attribute key="slotType" value="feet" /> <attribute key="speed" value="40" /> <attribute key="showattributes" value="1" /> </item>