-
Notifications
You must be signed in to change notification settings - Fork 2
/
enums.h
317 lines (290 loc) · 6.66 KB
/
enums.h
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
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
//////////////////////////////////////////////////////////////////////
// OpenTibia - an opensource roleplaying game
//////////////////////////////////////////////////////////////////////
//
//////////////////////////////////////////////////////////////////////
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
//////////////////////////////////////////////////////////////////////
#ifndef __OTSERV_ENUMS_H__
#define __OTSERV_ENUMS_H__
#include <string>
#include <list>
enum StorageValues_t
{
STORAGEVALUE_PROMOTION = 30018
};
enum GuildLevel_t
{
GUILDLEVEL_MEMBER = 1,
GUILDLEVEL_VICE = 2,
GUILDLEVEL_LEADER = 3
};
enum OperatingSystem_t
{
CLIENTOS_LINUX = 0x01,
CLIENTOS_WINDOWS = 0x02
};
enum AccountType_t
{
ACCOUNT_TYPE_NORMAL = 0x01,
ACCOUNT_TYPE_TUTOR = 0x02,
ACCOUNT_TYPE_SENIORTUTOR = 0x03,
ACCOUNT_TYPE_GAMEMASTER = 0x04,
ACCOUNT_TYPE_GOD = 0x05
};
enum RaceType_t
{
RACE_NONE = 0,
RACE_VENOM = 1,
RACE_BLOOD = 2,
RACE_UNDEAD = 3,
RACE_FIRE = 4,
RACE_ENERGY = 5
};
enum CombatType_t
{
COMBAT_FIRST = 0,
COMBAT_NONE = COMBAT_FIRST,
COMBAT_PHYSICALDAMAGE = 1,
COMBAT_ENERGYDAMAGE = 2,
COMBAT_EARTHDAMAGE = 4,
COMBAT_FIREDAMAGE = 8,
COMBAT_UNDEFINEDDAMAGE = 16,
COMBAT_LIFEDRAIN = 32,
COMBAT_MANADRAIN = 64,
COMBAT_HEALING = 128,
COMBAT_DROWNDAMAGE = 256,
COMBAT_ICEDAMAGE = 512,
COMBAT_HOLYDAMAGE = 1024,
COMBAT_DEATHDAMAGE = 2048,
COMBAT_LAST = COMBAT_DEATHDAMAGE
};
enum CombatParam_t
{
COMBATPARAM_COMBATTYPE = 1,
COMBATPARAM_EFFECT = 2,
COMBATPARAM_DISTANCEEFFECT = 3,
COMBATPARAM_BLOCKEDBYSHIELD = 4,
COMBATPARAM_BLOCKEDBYARMOR = 5,
COMBATPARAM_TARGETCASTERORTOPMOST = 6,
COMBATPARAM_CREATEITEM = 7,
COMBATPARAM_AGGRESSIVE = 8,
COMBATPARAM_DISPEL = 9,
COMBATPARAM_USECHARGES = 10
};
enum CallBackParam_t
{
CALLBACKPARAM_LEVELMAGICVALUE = 1,
CALLBACKPARAM_SKILLVALUE = 2,
CALLBACKPARAM_TARGETTILECALLBACK = 3,
CALLBACKPARAM_TARGETCREATURECALLBACK = 4
};
enum ConditionParam_t
{
CONDITIONPARAM_OWNER = 1,
CONDITIONPARAM_TICKS = 2,
//CONDITIONPARAM_OUTFIT = 3,
CONDITIONPARAM_HEALTHGAIN = 4,
CONDITIONPARAM_HEALTHTICKS = 5,
CONDITIONPARAM_MANAGAIN = 6,
CONDITIONPARAM_MANATICKS = 7,
CONDITIONPARAM_DELAYED = 8,
CONDITIONPARAM_SPEED = 9,
CONDITIONPARAM_LIGHT_LEVEL = 10,
CONDITIONPARAM_LIGHT_COLOR = 11,
CONDITIONPARAM_SOULGAIN = 12,
CONDITIONPARAM_SOULTICKS = 13,
CONDITIONPARAM_MINVALUE = 14,
CONDITIONPARAM_MAXVALUE = 15,
CONDITIONPARAM_STARTVALUE = 16,
CONDITIONPARAM_TICKINTERVAL = 17,
CONDITIONPARAM_FORCEUPDATE = 18,
CONDITIONPARAM_SKILL_MELEE = 19,
CONDITIONPARAM_SKILL_FIST = 20,
CONDITIONPARAM_SKILL_CLUB = 21,
CONDITIONPARAM_SKILL_SWORD = 22,
CONDITIONPARAM_SKILL_AXE = 23,
CONDITIONPARAM_SKILL_DISTANCE = 24,
CONDITIONPARAM_SKILL_SHIELD = 25,
CONDITIONPARAM_SKILL_FISHING = 26,
CONDITIONPARAM_STAT_MAXHITPOINTS = 27,
CONDITIONPARAM_STAT_MAXMANAPOINTS = 28,
CONDITIONPARAM_STAT_SOULPOINTS = 29,
CONDITIONPARAM_STAT_MAGICPOINTS = 30,
CONDITIONPARAM_STAT_MAXHITPOINTSPERCENT = 31,
CONDITIONPARAM_STAT_MAXMANAPOINTSPERCENT = 32,
CONDITIONPARAM_STAT_SOULPOINTSPERCENT = 33,
CONDITIONPARAM_STAT_MAGICPOINTSPERCENT = 34,
CONDITIONPARAM_PERIODICDAMAGE = 35,
CONDITIONPARAM_SKILL_MELEEPERCENT = 36,
CONDITIONPARAM_SKILL_FISTPERCENT = 37,
CONDITIONPARAM_SKILL_CLUBPERCENT = 38,
CONDITIONPARAM_SKILL_SWORDPERCENT = 39,
CONDITIONPARAM_SKILL_AXEPERCENT = 40,
CONDITIONPARAM_SKILL_DISTANCEPERCENT = 41,
CONDITIONPARAM_SKILL_SHIELDPERCENT = 42,
CONDITIONPARAM_SKILL_FISHINGPERCENT = 43,
CONDITIONPARAM_BUFF_SPELL = 44,
CONDITIONPARAM_SUBID = 45
};
enum BlockType_t
{
BLOCK_NONE = 0,
BLOCK_DEFENSE,
BLOCK_ARMOR,
BLOCK_IMMUNITY
};
enum skills_t
{
SKILL_FIRST = 0,
SKILL_FIST = SKILL_FIRST,
SKILL_CLUB = 1,
SKILL_SWORD = 2,
SKILL_AXE = 3,
SKILL_DIST = 4,
SKILL_SHIELD = 5,
SKILL_FISH = 6,
MAGLEVEL = 7,
LEVEL = 8,
SKILL_LAST = SKILL_FISH
};
enum stats_t
{
STAT_FIRST = 0,
STAT_MAXHITPOINTS = STAT_FIRST,
STAT_MAXMANAPOINTS,
STAT_SOULPOINTS,
STAT_MAGICPOINTS,
STAT_LAST = STAT_MAGICPOINTS
};
enum formulaType_t
{
FORMULA_UNDEFINED = 0,
FORMULA_LEVELMAGIC = 1,
FORMULA_SKILL = 2,
FORMULA_VALUE = 3
};
enum ConditionId_t
{
CONDITIONID_DEFAULT = -1,
CONDITIONID_COMBAT = 0,
CONDITIONID_HEAD = 1,
CONDITIONID_NECKLACE = 2,
CONDITIONID_BACKPACK = 3,
CONDITIONID_ARMOR = 4,
CONDITIONID_RIGHT = 5,
CONDITIONID_LEFT = 6,
CONDITIONID_LEGS = 7,
CONDITIONID_FEET = 8,
CONDITIONID_RING = 9,
CONDITIONID_AMMO = 10
};
enum PlayerSex_t
{
PLAYERSEX_FEMALE = 0,
PLAYERSEX_MALE = 1
};
enum Vocation_t
{
VOCATION_NONE = 0,
VOCATION_SORCERER = 1,
VOCATION_DRUID = 2,
VOCATION_PALADIN = 3,
VOCATION_KNIGHT = 4,
VOCATION_MASTERSORCERER = 5,
VOCATION_ELDERDRUID = 6,
VOCATION_ROYALPALADIN = 7,
VOCATION_ELITEKNIGHT = 8
};
enum CharacterTypes_t
{
PLAYER_MALE_1 = 0x80,
PLAYER_MALE_2 = 0x81,
PLAYER_MALE_3 = 0x82,
PLAYER_MALE_4 = 0x83,
PLAYER_MALE_5 = 0x84,
PLAYER_MALE_6 = 0x85,
PLAYER_MALE_7 = 0x86,
PLAYER_FEMALE_1 = 0x88,
PLAYER_FEMALE_2 = 0x89,
PLAYER_FEMALE_3 = 0x8A,
PLAYER_FEMALE_4 = 0x8B,
PLAYER_FEMALE_5 = 0x8C,
PLAYER_FEMALE_6 = 0x8D,
PLAYER_FEMALE_7 = 0x8E,
};
struct Outfit_t
{
Outfit_t()
{
lookHead = 0;
lookBody = 0;
lookLegs = 0;
lookFeet = 0;
lookType = 0;
lookTypeEx = 0;
lookAddons = 0;
}
uint16_t lookType;
uint16_t lookTypeEx;
uint8_t lookHead;
uint8_t lookBody;
uint8_t lookLegs;
uint8_t lookFeet;
uint8_t lookAddons;
};
struct LightInfo
{
uint32_t level;
uint32_t color;
LightInfo()
{
level = 0;
color = 0;
};
LightInfo(uint32_t _level, uint32_t _color)
{
level = _level;
color = _color;
}
};
struct ShopInfo
{
uint32_t itemId;
int32_t subType;
uint32_t buyPrice;
uint32_t sellPrice;
std::string realName;
ShopInfo()
{
itemId = 0;
subType = 1;
buyPrice = 0;
sellPrice = 0;
realName = "";
};
ShopInfo(uint32_t _itemId, int32_t _subType = 0,
uint32_t _buyPrice = 0, uint32_t _sellPrice = 0,
std::string _realName = "")
{
itemId = _itemId;
subType = _subType;
buyPrice = _buyPrice;
sellPrice = _sellPrice;
realName = _realName;
};
};
typedef std::list<ShopInfo> ShopInfoList;
#endif