summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-28 23:35:27 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-09-28 23:35:27 +0200
commitb1d04f61a96f757f5b561605ae06be67a4e0cc41 (patch)
tree0a040f7cd31b97f674172a6e19ad55c3fdd89adc /example
parent86f5a91ba9a59d39f21ca33424c7a2d4711eb8c7 (diff)
downloadmanaserv-b1d04f61a96f757f5b561605ae06be67a4e0cc41.tar.gz
manaserv-b1d04f61a96f757f5b561605ae06be67a4e0cc41.tar.xz
manaserv-b1d04f61a96f757f5b561605ae06be67a4e0cc41.zip
Fixed the items.xml file
The file is now setting the correct attack for the given weapons. I also updated the auto attack parameter to correspond the ones needed in the code.
Diffstat (limited to 'example')
-rw-r--r--example/clientdata/items.xml31
1 files changed, 17 insertions, 14 deletions
diff --git a/example/clientdata/items.xml b/example/clientdata/items.xml
index 13733cc..18e3889 100644
--- a/example/clientdata/items.xml
+++ b/example/clientdata/items.xml
@@ -108,7 +108,7 @@
</item>
<!-- Example of weapons -->
- <item id="5" max-per-slot="1" name="Sword" attack-action="attack_stab"
+ <item id="5" max-per-slot="1" name="Sword" attack-action="attack"
description="A simple sword."
image="equipment/weapons/weapon-sword-sword.png"
value="70">
@@ -116,13 +116,14 @@
<slot type="hand" required="2" />
</equip>
<effect trigger="equip">
- <autoattack basespeed="166" range="2" base="50" skill="102" >
- <bonus attribute="0" value="1.0" />
- </autoattack>
+ <modifier attribute="acc1" value="1.0" />
+ <autoattack skill="102" warmupspeed="10" cooldownspeed="166"
+ basedamage="50" deltadamage="10" chancetohit="2" range="32"
+ element="neutral" damagetype="physical" />
+ </effect>
<effect trigger="in-inventory">
<modifier attribute="cap1" value="-2000" />
</effect>
- </effect>
<sprite>weapons/weapon-sword.xml</sprite>
</item>
<item id="6" max-per-slot="1" name="Bow" attack-action="attack_bow"
@@ -133,16 +134,17 @@
<slot type="hand" required="2" />
</equip>
<effect trigger="equip">
- <autoattack basespeed="166" range="5" base="50" skill="106" >
- <bonus attribute="0" value="1.5" />
- </autoattack>
+ <autoattack skill="106" warmupspeed="10" cooldownspeed="166"
+ basedamage="50" deltadamage="10" chancetohit="2" range="160"
+ element="neutral" damagetype="physical" />
+ <modifier attribute="acc1" value="1.5" />
+ </effect>
<effect trigger="in-inventory">
<modifier attribute="cap1" value="-2000" />
</effect>
- </effect>
<sprite>weapons/weapon-bow.xml</sprite>
</item>
- <item id="10" max-per-slot="3" name="Dagger" attack-action="attack_stab"
+ <item id="10" max-per-slot="3" name="Dagger" attack-action="attack"
description="A simple dagger."
image="equipment/weapons/weapon-dagger-dagger.png"
value="20">
@@ -150,13 +152,14 @@
<slot type="hand" required="1" />
</equip>
<effect trigger="equip">
- <autoattack basespeed="166" range="1" base="50" skill="100" >
- <bonus attribute="0" value="1.5" />
- </autoattack>
+ <autoattack skill="100" warmupspeed="10" cooldownspeed="166"
+ basedamage="50" deltadamage="10" chancetohit="2" range="32"
+ element="neutral" damagetype="physical" />
+ <modifier attribute="acc1" value="1.5" />
+ </effect>
<effect trigger="in-inventory">
<modifier attribute="cap1" value="-2000" />
</effect>
- </effect>
<sprite>weapons/weapon-dagger.xml</sprite>
</item>