summaryrefslogtreecommitdiffstats
path: root/example
diff options
context:
space:
mode:
authorYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-27 20:05:50 +0200
committerYohann Ferreira <yohann_dot_ferreira_at_orange_dot_efer>2011-07-27 20:05:50 +0200
commit4a4acd479ee8de82df0935b3511257ade13258b6 (patch)
tree9c12aec805104281e12de242839ff9ade7acb461 /example
parent29f34ba1df05b95b9121b20deb26052c3ce05430 (diff)
downloadmanaserv-4a4acd479ee8de82df0935b3511257ade13258b6.tar.gz
manaserv-4a4acd479ee8de82df0935b3511257ade13258b6.tar.xz
manaserv-4a4acd479ee8de82df0935b3511257ade13258b6.zip
Reworked the way equip slot info are loaded in a more logical way.
Diffstat (limited to 'example')
-rw-r--r--example/clientdata/equip.xml25
1 files changed, 16 insertions, 9 deletions
diff --git a/example/clientdata/equip.xml b/example/clientdata/equip.xml
index 0d1c1d3..097229c 100644
--- a/example/clientdata/equip.xml
+++ b/example/clientdata/equip.xml
@@ -1,12 +1,19 @@
<?xml version="1.0" encoding="utf-8"?>
+<!-- Notes:
+ The id and name parameters must be unique.
+ The count parameter indicates the 'size' of the slot.
+ The visible parameter indicates whether the item is visible
+ on the map character. Hence, whether the server should send appearance
+ updates when making changes on it.
+-->
<equip-slots>
- <slot name="hand" count="2" visible="true" />
- <slot name="torso" count="1" visible="true" />
- <slot name="arms" count="1" />
- <slot name="head" count="1" visible="true" />
- <slot name="legs" count="1" visible="true" />
- <slot name="ring" count="1" />
- <slot name="necklace" count="1" />
- <slot name="feet" count="1" />
- <slot name="ammo" count="1" />
+ <slot id="1" name="hand" capacity="2" visible="true" />
+ <slot id="2" name="torso" capacity="1" visible="true" />
+ <slot id="3" name="arms" capacity="1" />
+ <slot id="4" name="head" capacity="1" visible="true" />
+ <slot id="5" name="legs" capacity="1" visible="true" />
+ <slot id="6" name="ring" capacity="1" />
+ <slot id="7" name="necklace" capacity="1" />
+ <slot id="8" name="feet" capacity="1" />
+ <slot id="9" name="ammo" capacity="1" />
</equip-slots>