• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua charges on EQ?

Lava Titan

Developer
Joined
Jul 25, 2009
Messages
1,571
Solutions
3
Reaction score
98
Location
Portugal
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...

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?
 
you will need something that the item reduce..
etc, make it reduce all with 1% and it will use charges when you are hit by something.. or chose physical or w.e you want it to lose charges to :)

edit:
I'm talking about "absorbprecentall" or how they're named in TFS :P
 
Back
Top