summaryrefslogtreecommitdiff
path: root/example/clientdata/items.xml
diff options
context:
space:
mode:
Diffstat (limited to 'example/clientdata/items.xml')
-rw-r--r--example/clientdata/items.xml86
1 files changed, 85 insertions, 1 deletions
diff --git a/example/clientdata/items.xml b/example/clientdata/items.xml
index fbf899ac..9fd64a24 100644
--- a/example/clientdata/items.xml
+++ b/example/clientdata/items.xml
@@ -1,12 +1,96 @@
<?xml version="1.0" encoding="utf-8"?>
<items>
+ <!-- Example of an usable items -->
<item id="1"
- image="use-food-candy.png"
+ image="usable/usable-candy.png"
name="Candy"
description="A sugar-free candy."
type="usable"
hp="5"
+ script="candy.lua"
weight="1"
max-per-slot="30"
/>
+ <item id="2" max-per-slot="1" name="Regenerative trinket"
+ description="A trinket with refreshing powers."
+ image="usable/usable-regenerative-trinket.png">
+ <effect trigger="existence">
+ <modifier attribute="hpr2" value="1.05" />
+ <modifier attribute="cap1" value="-50" />
+ </effect>
+ </item>
+ <item id="3" max-per-slot="99" name="Minor health potion"
+ description="A small bottle containing a lightly tinted red fluid. A faint sparkle can be seen occasionally, and the very smell of the contents make you feel more alive, vibrant, and healthy."
+ image="usable/usable-minor-health-potion.png">
+ <effect trigger="activation">
+ <modifier attribute="hpr3" value="2.5" duration="30" />
+ <modifier attribute="hpr4" value="2.0" duration="30" />
+ <consumes />
+ </effect>
+ <effect trigger="existence">
+ <modifier attribute="cap1" value="-110" />
+ </effect>
+ </item>
+ <item id="4" max-per-slot="1" name="Token of speed"
+ description="An old, cracked, rectangular slab. It has a faint blue glow, and a strangle symbol set into one of the sides. A circular pattern in the centre is just big enough for someone to put their hand on."
+ image="usable/usable-token-of-speed.png">
+ <effect trigger="activation">
+ <modifier attribute="mspd" value="1.3" duration="50" />
+ <cooldown value="150" />
+ </effect>
+ <effect trigger="existence">
+ <modifier attribute="cap1" value="-400" />
+ </effect>
+ </item>
+
+ <!-- Example of weapons -->
+ <item id="5" max-per-slot="1" name="Sword" attack-action="attack_stab"
+ description="A simple sword."
+ image="equipment/weapons/weapon-sword-sword.png">
+ <equip>
+ <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>
+ <effect trigger="existence">
+ <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"
+ description="A simple bow made of fine oak wood."
+ image="equipment/weapons/weapon-bow-bow.png">
+ <equip>
+ <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>
+ <effect trigger="existence">
+ <modifier attribute="cap1" value="-2000" />
+ </effect>
+ </effect>
+ <sprite>weapons/weapon-bow.xml</sprite>
+ </item>
+
+ <!-- Example of equippable items -->
+ <item id="7" max-per-slot="1" name="Leather shirt"
+ description="A simple shirt made of leather."
+ image="equipment/chest/chest-leathershirt.png">
+ <equip>
+ <slot type="torso" required="1" />
+ </equip>
+ <effect trigger="equip">
+ <modifier attribute="def1" value="5" />
+ </effect>
+ <effect trigger="existence">
+ <modifier attribute="cap1" value="-250" />
+ </effect>
+ <sprite gender="male">equipment/chest/chest-leather-male.xml</sprite>
+ <sprite gender="female">equipment/chest/chest-leather-female.xml</sprite>
+ </item>
</items>