I need a Slingshot that change on deEquip, but it don't work 100%, the equip function work buy on deEquip the item don't change back. This are the scripts:
items.xml
movements.xml
What is wrong here?
items.xml
Lua:
<item id="5907" article="a" name="slingshot">
<attribute key="description" value="The powerfull Paladin Weapon."/>
<attribute key="attack" value="100"/>
<attribute key="weight" value="1200"/>
<attribute key="weaponType" value="distance"/>
<attribute key="shootType" value="smallstone"/>
<attribute key="range" value="6"/>
<attribute key="decayTo" value="12428" />
<attribute key="duration" value="18000" />
<attribute key="showduration" value="1" />
<attribute key="transformDeEquipTo" value="12382" />
</item>
-----------------------------------------------------------------------
<item id="12382" article="a" name="slingshot">
<attribute key="weight" value="1200" />
<attribute key="transformEquipTo" value="5907" />
<attribute key="stopduration" value="1" />
<attribute key="showduration" value="1" />
</item>
-----------------------------------------------------------------------
<item id="12428" article="a" name="worn slingshot">
<attribute key="description" value="Someone specialised in slingshots might be able to repair this for you." />
<attribute key="weight" value="10" />
</item>
movements.xml
Lua:
<movevent event="Equip" itemid="5907" slot="shield" function="onEquipItem">
<vocation name="Paladin"/>
<vocation name="Royal Paladin" showInDescription="1"/>
</movevent>
<movevent type="DeEquip" itemid="5907" slot="shield" event="function" value="onDeEquipItem"/>
<movevent type="Equip" itemid="12382" slot="shield" event="function" value="onEquipItem"/>
What is wrong here?