summaryrefslogtreecommitdiffstats
path: root/example/items.xml
blob: 730e57291351e706b1ec78d8de314dbc6b93ba17 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
<?xml version="1.0" encoding="utf-8"?>
<items>

    <!-- Kept for now to display the player correctly. Will be moved to races.xml later -->
    <item id="-1" type="hairsprite" name="Flat ponytail">
        <sprite>races/humans/hairstyles/hairstyle1.xml</sprite>
    </item>
    <item id="-2" type="hairsprite" name="Bowl cut">
        <sprite>races/humans/hairstyles/hairstyle2.xml</sprite>
    </item>
    <item id="-3" type="hairsprite" name="Combed back">
        <sprite>races/humans/hairstyles/hairstyle3.xml</sprite>
    </item>
    <item id="-4" type="hairsprite" name="Emo">
        <sprite>races/humans/hairstyles/hairstyle4.xml</sprite>
    </item>
    <item id="-5" type="hairsprite" name="Mohawk">
        <sprite>races/humans/hairstyles/hairstyle5.xml</sprite>
    </item>
    <item id="-6" type="hairsprite" name="Pompadour">
        <sprite>races/humans/hairstyles/hairstyle6.xml</sprite>
    </item>
    <item id="-7" type="hairsprite" name="Center parting/Short and slick">
        <sprite>races/humans/hairstyles/hairstyle7.xml</sprite>
    </item>
    <item id="-8" type="hairsprite" name="Long and slick">
        <sprite>races/humans/hairstyles/hairstyle8.xml</sprite>
    </item>
    <item id="-9" type="hairsprite" name="Short and curly">
        <sprite>races/humans/hairstyles/hairstyle9.xml</sprite>
    </item>
    <item id="-10" type="hairsprite" name="Pigtails">
        <sprite>races/humans/hairstyles/hairstyle10.xml</sprite>
    </item>
    <item id="-11" type="hairsprite" name="Long and curly">
        <sprite>races/humans/hairstyles/hairstyle11.xml</sprite>
    </item>
    <item id="-12" type="hairsprite" name="Parted">
        <sprite>races/humans/hairstyles/hairstyle12.xml</sprite>
    </item>
    <item id="-13" type="hairsprite" name="Perky ponytail">
        <sprite>races/humans/hairstyles/hairstyle13.xml</sprite>
    </item>
    <item id="-14" type="hairsprite" name="Wave">
        <sprite>races/humans/hairstyles/hairstyle14.xml</sprite>
    </item>
    <item id="-15" type="hairsprite" name="Mane">
        <sprite>races/humans/hairstyles/hairstyle15.xml</sprite>
    </item>
    <item id="-16" type="hairsprite" name="Bun">
        <sprite>races/humans/hairstyles/hairstyle16.xml</sprite>
    </item>

    <!-- Base race player sprite -->
    <item id="-100" type="racesprite" name="Human">
        <sprite gender="male">races/humans/human_male_base.xml</sprite>
        <sprite gender="female">races/humans/human_female_base.xml</sprite>
    </item>

    <!-- Example of an usable items -->
    <item id="1"
        image="usable/usable-candy.png"
        name="Candy"
        description="A sugar-free candy."
        type="usable"
        hp="5"
        weight="1"
        max-per-slot="30"
        value="15">
        <effect trigger="activation">
            <script src="candy.lua" function="use_candy" />
            <consumes />
        </effect>
    </item>
    <item id="2" max-per-slot="1" name="Regenerative trinket"
        description="A trinket with refreshing powers."
        image="usable/usable-regenerative-trinket.png"
        value="25">
        <effect trigger="in-inventory">
            <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"
        value="40">
        <effect trigger="activation">
            <modifier attribute="hpr3" value="2.5" duration="30" />
            <modifier attribute="hpr4" value="2.0" duration="30" />
            <consumes />
        </effect>
        <effect trigger="in-inventory">
            <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"
        value="50">
        <effect trigger="activation">
            <modifier attribute="mspd" value="1.3" duration="50" />
            <cooldown value="150" />
        </effect>
        <effect trigger="in-inventory">
            <modifier attribute="cap1" value="-400" />
        </effect>
    </item>

    <!-- Example of weapons -->
    <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">
        <equip>
            <slot type="hand" required="2" />
        </equip>
        <effect trigger="equip">
            <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>
        <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"
        value="80">
        <equip>
            <slot type="hand" required="2" />
        </equip>
        <effect trigger="equip">
            <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>
        <sprite>weapons/weapon-bow.xml</sprite>
    </item>
    <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">
        <equip>
            <slot type="hand" required="1" />
        </equip>
        <effect trigger="equip">
            <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>
        <sprite>weapons/weapon-dagger.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"
        value="80">
        <equip>
            <slot type="torso" required="1" />
        </equip>
        <effect trigger="equip">
            <modifier attribute="def1" value="5" />
        </effect>
        <effect trigger="in-inventory">
            <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>
    <item id="11" max-per-slot="2" name="Pants"
        description="Simple pants."
        image="equipment/legs/pants.png"
        value="50">
        <equip>
            <slot type="legs" required="1" />
        </equip>
        <effect trigger="equip">
            <modifier attribute="def1" value="5" />
        </effect>
        <effect trigger="in-inventory">
            <modifier attribute="cap1" value="-250" />
        </effect>
        <sprite gender="male">equipment/legs/pants-male.xml</sprite>
        <sprite gender="female">equipment/legs/pants-female.xml</sprite>
    </item>
    <item id="12" max-per-slot="1" name="Boots"
        description="Simple boots."
        image="equipment/feet/boots.png|W:#4f2d29,c89078"
        value="40">
        <equip>
            <slot type="feet" required="1" />
        </equip>
        <effect trigger="equip">
            <modifier attribute="def1" value="5" />
        </effect>
        <effect trigger="in-inventory">
            <modifier attribute="cap1" value="-250" />
        </effect>
        <sprite gender="male">equipment/feet/boots-male.xml|#4f2d29,c89078</sprite>
        <sprite gender="female">equipment/feet/boots-female.xml|#4f2d29,c89078</sprite>
    </item>

    <!-- example crafting ingredients -->
    <item id="8" max-per-slot="99" name="Iron"
        description="Combine with one wood to create a sword"
        image="crafting/generic-ingot.png"
        value="1" />
    <item id="9" max-per-slot="99" name="Wood"
        description="Combine with two iron to create a sword"
        image="crafting/generic-rawlog.png"
        value="1" />
</items>