Felipe Monteiro
Webmaster
My amulets show in game only 1 charge when look it, but in items.xml is right charges.
I hope someone can help me
I hope someone can help me
<!-- Strange Talisman -->
<movevent type="Equip" itemid="2161 -- itemID" slot="necklace" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2161 --- itemID" slot="necklace" event="function" value="onDeEquipItem"/>
<item id="2161 -- itemID" article="a" name="strange talisman">
<attribute key="weight" value="290"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="200"/>
<attribute key="showcharges" value="1"/>
<attribute key="absorbPercentEnergy" value="10"/>
<attribute key="showattributes" value="1"/>
</item>
was still working, changed to [ code ] [/SIZE]
You should check your movements.xml and make sure your amulet ID is equal to the one in items.xml
ex:
/data/movements/movements.xml
/data/items/items.xmlCode:<!-- Strange Talisman --> <movevent type="Equip" itemid="2161 -- itemID" slot="necklace" event="function" value="onEquipItem"/> <movevent type="DeEquip" itemid="2161 --- itemID" slot="necklace" event="function" value="onDeEquipItem"/>
Code:<item id="2161 -- itemID" article="a" name="strange talisman"> <attribute key="weight" value="290"/> <attribute key="slotType" value="necklace"/> <attribute key="charges" value="200"/> <attribute key="showcharges" value="1"/> -- If you change this to "0" you dont have to worry about the amulet to show charges when looking at it. If the case is that the charges work but the description says something else <attribute key="absorbPercentEnergy" value="10"/> <attribute key="showattributes" value="1"/> </item>
If this din't help you, please tell us what distro you're using and also post your amulet script, both in items.xml and movements.xml
EDIT: thoughtLua:was still working, changed to [ code ] [/SIZE][/quote] Im using tfs 1.0, and about configuration looks right.. Items.xml [code] <item id="2197" article="a" name="stone skin amulet"> <attribute key="weight" value="700" /> <attribute key="slotType" value="necklace" /> <attribute key="charges" value="5" /> <attribute key="showcharges" value="1" /> <attribute key="absorbPercentPhysical" value="80" /> <attribute key="absorbPercentDeath" value="80" /> <attribute key="showattributes" value="1" /> </item>
Movements.xml
Code:<movevent event="Equip" itemid="2197" slot="necklace" function="onEquipItem"/> <movevent event="DeEquip" itemid="2197" slot="necklace" function="onDeEquipItem"/>
but, when i look it in-game..
Code:09:28 You see a stone skin amulet (protection physical +80%, death +80%) that has 1 charge left. It weighs 7.00 oz.
<item id="2197" article="a" name="stone skin amulet">
<attribute key="weight" value="700" />
<attribute key="slotType" value="necklace" />
<attribute key="charges" value="5" />
<attribute key="showcharges" value="5" />
<attribute key="absorbPercentPhysical" value="80" />
<attribute key="absorbPercentDeath" value="80" />
<attribute key="showattributes" value="1" />
</item>
<item id="2197" article="a" name="stone skin amulet">
<attribute key="weight" value="700"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="5"/>
<attribute key="showcharges" value="1"/>
<attribute key="absorbPercentPhysical" value="80" />
<attribute key="absorbPercentDeath" value="80" />
<attribute key="showattributes" value="1"/>
</item>
<item id="2197" article="a" name="stone skin amulet">
<attribute key="weight" value="700"/>
<attribute key="slotType" value="necklace"/>
<attribute key="charges" value="5"/>
<attribute key="showcharges" value="1"/>
<attribute key="absorbPercentPhysical" value="80"/>
<attribute key="absorbPercentDeath" value="80"/>
<attribute key="showattributes" value="1"/>
</item>
<movevent type="Equip" itemid="2197" slot="necklace" event="function" value="onEquipItem"/>
<movevent type="DeEquip" itemid="2197" slot="necklace" event="function" value="onDeEquipItem"/>
nothing change, and now it doesnt show charges left more
using gm commands i can set 5 charges, but i need it without do itAnd If u create this amulet through GM comand? Remember to create item WITH charges
stone skin amulet,2197,5000,5;
<item id="2197" subtype="5" chance="900"/>
using gm commands i can set 5 charges, but i need it without do it