charlyhustle
Member
- Joined
- Dec 9, 2011
- Messages
- 55
- Reaction score
- 9
Hi guys!
As the title suggests I created a new weapon type called gloves. I'm using gloves to train my attack speed skill.
I created a glove weapon and put in in weapons.xml (I'm using sniper gloves' id):
items.xml looks like this:
Removing charges from weapons like fiery spike sword works perfectly fine but the gloves stay at the same amount of charges.
Also when creating the item like "/i 5875, 100" it says:
"You see 100 speed training gloves that has 100 charges left."
instead of:
"You see a fiery spike sword (Atk:20 physical + 4 fire, Def:21 +2) that has 100 charges left."
I might have missed something while editing the sources but I'm pretty sure i've done every necessary change.
I also looked at the removecharges function but it doesn't seem that I would have to edit it since other weapon types aren't mentioned either inside the function itself.
Did I miss anything? I would highly appreciate any help!
(If you need to see source changes tell me and I will provide them!)
Thanks in advance!
As the title suggests I created a new weapon type called gloves. I'm using gloves to train my attack speed skill.
I created a glove weapon and put in in weapons.xml (I'm using sniper gloves' id):
XML:
<!-- Attack Speed -->
<melee id="5875" action="removecharge" />
items.xml looks like this:
Code:
<item id="5875" name="speed training gloves">
<attribute key="description" value="Use these gloves as a weapon to train your attack speed." />
<attribute key="weight" value="5000" />
<attribute key="weaponType" value="gloves" />
<attribute key="charges" value="100" />
<attribute key="showcharges" value="1" />
<attribute key="decayTo" value="0" />
</item>
Removing charges from weapons like fiery spike sword works perfectly fine but the gloves stay at the same amount of charges.
Also when creating the item like "/i 5875, 100" it says:
"You see 100 speed training gloves that has 100 charges left."
instead of:
"You see a fiery spike sword (Atk:20 physical + 4 fire, Def:21 +2) that has 100 charges left."
I might have missed something while editing the sources but I'm pretty sure i've done every necessary change.
I also looked at the removecharges function but it doesn't seem that I would have to edit it since other weapon types aren't mentioned either inside the function itself.
Did I miss anything? I would highly appreciate any help!
(If you need to see source changes tell me and I will provide them!)
Thanks in advance!