Lava Titan
Developer
Hey is it possible to make charges on EQ like helmets, armors, etc...?
I tried and it just doesn't work, I'm not sure if I'm doing something wrong tho...
How can I make it lose charges by getting hit by monster instead of hitting monster like weapons do?
I tried and it just doesn't work, I'm not sure if I'm doing something wrong tho...
Code:
<item id="2460" article="a" name="Novice Helmet">
<attribute key="armor" value="100" />
<attribute key="slotType" value="head" />
<attribute key="skillSword" value="1" />
<attribute key="skillAxe" value="1" />
<attribute key="skillClub" value="1" />
<attribute key="charges" value="2" />
<attribute key="showcharges" value="1" />
<attribute key="decayTo" value="2234" />
</item>
Code:
<movevent event="DeEquip" itemid="2460" slot="head" function="onDeEquipItem"/>
<movevent event="Equip" itemid="2460" slot="head" function="onEquipItem"/>
23:17 You see a Novice Helmet (Arm:100, club fighting +1, sword fighting +1, axe fighting +1) that has 1 charge left.
How can I make it lose charges by getting hit by monster instead of hitting monster like weapons do?