forked from Viniixd/Remastered-AssetsEditor
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathappearances.proto
More file actions
340 lines (300 loc) · 9.5 KB
/
appearances.proto
File metadata and controls
340 lines (300 loc) · 9.5 KB
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
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
syntax = "proto2";
package tibia.protobuf.appearances;
message Appearances {
repeated Appearance object = 1;
repeated Appearance outfit = 2;
repeated Appearance effect = 3;
repeated Appearance missile = 4;
optional SpecialMeaningAppearanceIds special_meaning_appearance_ids = 5;
}
message SpritePhase {
optional uint32 duration_min = 1;
optional uint32 duration_max = 2;
}
message SpriteAnimation {
optional uint32 default_start_phase = 1;
optional bool synchronized = 2;
optional bool random_start_phase = 3;
optional ANIMATION_LOOP_TYPE loop_type = 4;
optional uint32 loop_count = 5;
repeated SpritePhase sprite_phase = 6;
optional ANIMATION_ANIMATION_MODE animation_mode = 7;
}
message Box {
optional uint32 x = 1;
optional uint32 y = 2;
optional uint32 width = 3;
optional uint32 height = 4;
}
message SpriteInfo {
optional uint32 pattern_width = 1;
optional uint32 pattern_height = 2;
optional uint32 pattern_depth = 3;
optional uint32 layers = 4;
repeated uint32 sprite_id = 5;
optional uint32 bounding_square = 7;
optional SpriteAnimation animation = 6;
optional bool is_opaque = 8;
repeated Box bounding_box_per_direction = 9;
optional uint32 pattern_size = 10;
optional uint32 pattern_layers = 11;
optional uint32 pattern_x = 12;
optional uint32 pattern_y = 13;
optional uint32 pattern_z = 14;
optional uint32 pattern_frames = 15;
optional bool is_animation = 16;
}
message FrameGroup {
optional FIXED_FRAME_GROUP fixed_frame_group = 1;
optional uint32 id = 2;
optional SpriteInfo sprite_info = 3;
}
message Appearance {
optional uint32 id = 1;
repeated FrameGroup frame_group = 2;
optional AppearanceFlags flags = 3;
optional string name = 4;
optional string description = 5;
optional APPEARANCE_TYPE appearance_type = 6;
repeated bytes sprite_data = 7;
}
message AppearanceFlags {
optional AppearanceFlagBank bank = 1;
optional bool clip = 2;
optional bool bottom = 3;
optional bool top = 4;
optional bool container = 5;
optional bool cumulative = 6;
optional bool usable = 7;
optional bool forceuse = 8;
optional bool multiuse = 9;
optional AppearanceFlagWrite write = 10;
optional AppearanceFlagWriteOnce write_once = 11;
optional bool liquidpool = 12;
optional bool unpass = 13;
optional bool unmove = 14;
optional bool unsight = 15;
optional bool avoid = 16;
optional bool no_movement_animation = 17;
optional bool take = 18;
optional bool liquidcontainer = 19;
optional bool hang = 20;
optional AppearanceFlagHook hook = 21;
optional bool rotate = 22;
optional AppearanceFlagLight light = 23;
optional bool dont_hide = 24;
optional bool translucent = 25;
optional AppearanceFlagShift shift = 26;
optional AppearanceFlagHeight height = 27;
optional bool lying_object = 28;
optional bool animate_always = 29;
optional AppearanceFlagAutomap automap = 30;
optional AppearanceFlagLenshelp lenshelp = 31;
optional bool fullbank = 32;
optional bool ignore_look = 33;
optional AppearanceFlagClothes clothes = 34;
optional AppearanceFlagDefaultAction default_action = 35;
optional AppearanceFlagMarket market = 36;
optional bool wrap = 37;
optional bool unwrap = 38;
optional bool topeffect = 39;
repeated AppearanceFlagNPC npcsaledata = 40;
optional AppearanceFlagChangedToExpire changedtoexpire = 41;
optional bool corpse = 42;
optional bool player_corpse = 43;
optional AppearanceFlagCyclopedia cyclopediaitem = 44;
optional bool ammo = 45;
optional bool show_off_socket = 46;
optional bool reportable = 47;
optional AppearanceFlagUpgradeClassification upgradeclassification = 48;
optional bool reverse_addons_east = 49;
optional bool reverse_addons_west = 50;
optional bool reverse_addons_south = 51;
optional bool reverse_addons_north = 52;
optional bool wearout = 53;
optional bool clockexpire = 54;
optional bool expire = 55;
optional bool expirestop = 56;
optional bool deco_item_kit = 57;
optional AppearanceFlagSkillWheelGem skillwheel_gem = 58;
optional bool dual_wielding = 59;
optional AppearanceFlagImbueable imbueable = 60;
optional AppearanceFlagProficiency proficiency = 61;
repeated VOCATION restrict_to_vocation = 62;
optional uint32 minimum_level = 63;
optional WEAPON_TYPE weapon_type = 64;
reserved 65 to 69;;
optional bool hook_south = 70;
optional bool hook_east = 71;
optional AppearanceFlagTransparencyLevel transparencylevel = 72;
}
message AppearanceFlagBank {
optional uint32 waypoints = 1;
}
message AppearanceFlagWrite {
optional uint32 max_text_length = 1;
}
message AppearanceFlagWriteOnce {
optional uint32 max_text_length_once = 1;
}
message AppearanceFlagLight {
optional uint32 brightness = 1;
optional uint32 color = 2;
}
message AppearanceFlagHeight {
optional uint32 elevation = 1;
}
message AppearanceFlagShift {
optional uint32 x = 1;
optional uint32 y = 2;
}
message AppearanceFlagClothes {
optional uint32 slot = 1;
}
message AppearanceFlagDefaultAction {
optional PLAYER_ACTION action = 1;
}
message AppearanceFlagMarket {
optional ITEM_CATEGORY category = 1;
optional uint32 trade_as_object_id = 2;
optional uint32 show_as_object_id = 3;
repeated VOCATION restrict_to_vocation = 5;
optional uint32 minimum_level = 6;
optional string name = 7;
optional VOCATION vocation = 8;
}
message AppearanceFlagNPC {
optional string name = 1;
optional string location = 2;
optional uint32 sale_price = 3;
optional uint32 buy_price = 4;
optional uint32 currency_object_type_id = 5;
optional string currency_quest_flag_display_name = 6;
}
message AppearanceFlagAutomap {
optional uint32 color = 1;
}
message AppearanceFlagHook {
optional HOOK_TYPE direction = 1;
}
message AppearanceFlagLenshelp {
optional uint32 id = 1;
}
message AppearanceFlagChangedToExpire {
optional uint32 former_object_typeid = 1;
}
message AppearanceFlagCyclopedia {
optional uint32 cyclopedia_type = 1;
}
message AppearanceFlagUpgradeClassification {
optional uint32 upgrade_classification = 1;
}
message AppearanceFlagTransparencyLevel {
optional uint32 level = 1;
}
message SpecialMeaningAppearanceIds {
optional uint32 gold_coin_id = 1;
optional uint32 platinum_coin_id = 2;
optional uint32 crystal_coin_id = 3;
optional uint32 tibia_coin_id = 4;
optional uint32 stamped_letter_id = 5;
optional uint32 supply_stash_id = 6;
optional uint32 standard_reward_chest_id = 7;
optional uint32 blank_imbuement_scroll_id = 8;
}
message AppearanceFlagImbueable {
optional uint32 slot_count = 1;
}
message AppearanceFlagSkillWheelGem {
optional uint32 gem_quality_id = 1;
optional uint32 vocation_id = 2;
}
message AppearanceFlagProficiency {
optional uint32 proficiency_id = 1;
}
enum FIXED_FRAME_GROUP {
FIXED_FRAME_GROUP_OUTFIT_IDLE = 0;
FIXED_FRAME_GROUP_OUTFIT_MOVING = 1;
FIXED_FRAME_GROUP_OBJECT_INITIAL = 2;
}
message Coordinate {
optional uint32 x = 1;
optional uint32 y = 2;
optional uint32 z = 3;
}
enum PLAYER_ACTION {
PLAYER_ACTION_NONE = 0;
PLAYER_ACTION_LOOK = 1;
PLAYER_ACTION_USE = 2;
PLAYER_ACTION_OPEN = 3;
PLAYER_ACTION_AUTOWALK_HIGHLIGHT = 4;
}
enum ITEM_CATEGORY {
ITEM_CATEGORY_ARMORS = 1;
ITEM_CATEGORY_AMULETS = 2;
ITEM_CATEGORY_BOOTS = 3;
ITEM_CATEGORY_CONTAINERS = 4;
ITEM_CATEGORY_DECORATION = 5;
ITEM_CATEGORY_FOOD = 6;
ITEM_CATEGORY_HELMETS_HATS = 7;
ITEM_CATEGORY_LEGS = 8;
ITEM_CATEGORY_OTHERS = 9;
ITEM_CATEGORY_POTIONS = 10;
ITEM_CATEGORY_RINGS = 11;
ITEM_CATEGORY_RUNES = 12;
ITEM_CATEGORY_SHIELDS = 13;
ITEM_CATEGORY_TOOLS = 14;
ITEM_CATEGORY_VALUABLES = 15;
ITEM_CATEGORY_AMMUNITION = 16;
ITEM_CATEGORY_AXES = 17;
ITEM_CATEGORY_CLUBS = 18;
ITEM_CATEGORY_DISTANCE_WEAPONS = 19;
ITEM_CATEGORY_SWORDS = 20;
ITEM_CATEGORY_WANDS_RODS = 21;
ITEM_CATEGORY_PREMIUM_SCROLLS = 22;
ITEM_CATEGORY_TIBIA_COINS = 23;
ITEM_CATEGORY_CREATURE_PRODUCTS = 24;
ITEM_CATEGORY_QUIVER = 25;
ITEM_CATEGORY_SOUL_CORES = 26;
ITEM_CATEGORY_FIST_WEAPONS = 27;
}
enum VOCATION {
VOCATION_ANY = -1;
VOCATION_NONE = 0;
VOCATION_KNIGHT = 1;
VOCATION_PALADIN = 2;
VOCATION_SORCERER = 3;
VOCATION_DRUID = 4;
VOCATION_MONK = 5;
VOCATION_PROMOTED = 10;
}
enum ANIMATION_LOOP_TYPE {
ANIMATION_LOOP_TYPE_PINGPONG = -1;
ANIMATION_LOOP_TYPE_INFINITE = 0;
ANIMATION_LOOP_TYPE_COUNTED = 1;
}
enum HOOK_TYPE {
HOOK_TYPE_SOUTH = 1;
HOOK_TYPE_EAST = 2;
}
enum ANIMATION_ANIMATION_MODE {
ANIMATION_ASYNCHRONIZED = 0;
ANIMATION_SYNCHRONIZED = 1;
}
enum APPEARANCE_TYPE {
APPEARANCE_OBJECT = 1;
APPEARANCE_OUTFIT = 2;
APPEARANCE_EFFECT = 3;
APPEARANCE_MISSILE = 4;
}
enum WEAPON_TYPE {
WEAPON_TYPE_NOWEAPON = 0;
WEAPON_TYPE_SWORD = 1;
WEAPON_TYPE_AXE = 2;
WEAPON_TYPE_CLUB = 3;
WEAPON_TYPE_FIST = 4;
WEAPON_TYPE_BOW = 5;
WEAPON_TYPE_CROSSBOW = 6;
WEAPON_TYPE_WAND_ROD = 7;
WEAPON_TYPE_THROW = 8;
}