-
Notifications
You must be signed in to change notification settings - Fork 136
/
common.h
170 lines (154 loc) · 4.43 KB
/
common.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
/*
IntWars playground server for League of Legends protocol testing
Copyright (C) 2012 Intline9 <[email protected]>
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 3 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef _COMMON_H
#define _COMMON_H
enum GameCmd : uint8
{
PKT_S2C_MoveAns = 0x67,
};
//Currently attuned to PBE 1.0.0.140
enum PacketCmd : uint8
{ //Channel //Type
PKT_KeyCheck = 0x00, //0
PKT_ChatBoxMessage = 0x00, //5
PKT_S2C_EndSpawn = 0x12, //
PKT_C2S_QueryStatusReq = 0x17, //1
PKT_S2C_SkillUp = 0x18, //3
PKT_C2S_Ping_Load_Info = 0x19, //1
PKT_S2C_ViewAns = 0x2E, //3
PKT_C2S_ViewReq = 0x30, //1
PKT_C2S_SkillUp = 0x3E, //1
PKT_S2C_AttentionPing = 0x47,
PKT_S2C_Emotion = 0x49,
PKT_C2S_Emotion = 0x4E,
PKT_S2C_Announce = 0x4C, //3
PKT_S2C_HeroSpawn = 0x52,
PKT_C2S_StartGame = 0x58, //1
PKT_S2C_SynchVersion = 0x5A, //3
PKT_C2S_AttentionPing = 0x5D,
PKT_C2S_ScoreBord = 0x5C, //1
PKT_S2C_StartGame = 0x62,
PKT_C2S_OpenShop = 0x63, //1
PKT_C2S_ClientReady = 0x64, //6
PKT_S2C_LoadHero = 0x65, //6
PKT_S2C_LoadName = 0x66, //6
PKT_S2C_LoadScreenInfo = 0x67, //6
PKT_C2S_MoveAnswer = 0x67, //4
PKT_C2S_MoveReq = 0x78, //1
PKT_C2S_MoveConfirm = 0x7D, //1
PKT_C2S_ReqBuyItem = 0x89, //1
PKT_C2S_LockCamera = 0x88, //1
PKT_S2C_QueryStatusAns = 0x8F,
PKT_C2S_Exit = 0x96, //1
PKT_World_SendGameNumber = 0x9A, //3
PKT_S2C_Ping_Load_Info = 0x9F, //4
PKT_C2S_GameNumberReq = 0xA6, //1
PKT_C2S_Surrender = 0xAE, //1
PKT_C2S_StatsConfirm = 0xB2, //1
PKT_C2S_Click = 0xBB, //1
PKT_S2C_FogUpdate2 = 0xC6, //3
PKT_C2S_SynchVersion = 0xC9, //1
PKT_C2S_CharLoaded = 0xCA, //1
PKT_S2C_CharStats = 0xD0, //4
PKT_Batch = 0xFF, //3
};
enum MoveType : uint8
{
EMOTE = 1,
MOVE = 4,
STOP = 10,
};
enum ChatType : uint32
{
CHAT_ALL = 0,
CHAT_TEAM = 1,
};
#define CHL_MAX = 7
enum Channel : uint8
{
CHL_HANDSHAKE = 0,
CHL_C2S = 1,
CHL_GAMEPLAY =2,
CHL_S2C = 3,
CHL_LOW_PRIORITY = 4,
CHL_COMMUNICATION = 5,
CHL_LOADING_SCREEN = 6,
};
enum Spell : uint32
{
SPL_Revive = 0x05C8B3A5,
SPL_Smite = 0x065E8695,
SPL_Exhaust = 0x08A8BAE4,
SPL_Barrier = 0x0CCFB982,
SPL_Teleport = 0x004F1364,
SPL_Ghost = 0x064ACC95,
SPL_Heal = 0x0364AF1C,
SPL_Cleanse = 0x064D2094,
SPL_Clarity = 0x03657421,
SPL_Ignite = 0x06364F24,
SPL_Promote = 0x0410FF72,
SPL_Clair = 0x09896765,
SPL_Flash = 0x06496EA8,
SPL_Test = 0x0103D94C,
};
enum MasterMask : uint8
{
MM_One = 0x0001,
MM_Two = 0x0002,
MM_Three = 0x0004,
MM_Four = 0x0008,
MM_Five = 0x0010,
};
enum FieldMaskOne : uint32
{
FM1_Gold = 0x00000001,
};
enum FieldMaskTwo : uint32
{
FM2_Armor = 0x00000100,
FM2_Hp5 = 0x00000400,
FM2_Mp5 = 0x00000800,
FM2_Ap = 0x00008000,
};
enum FieldMaskThree : uint32
{
};
enum FieldMaskFour : uint32
{
FM4_CurrentHp = 0x00000001,
FM4_CurrentMana = 0x00000002,
FM4_MaxHp = 0x00000004,
FM4_MaxMp = 0x00000008,
FM4_exp = 0x00000010,
FM4_Vision1 = 0x00000100,
FM4_Vision2 = 0x00000200,
FM4_Speed = 0x00000400,
FM4_ModelSize = 0x00000800,
};
enum FieldMaskFive : uint32
{
};
enum StatsIds : uint32
{
STI_Movement = 0x00000400,
STI_Gold = 0x00000001,
//STI_Health = 0x00000001,
STI_Exp = 0x00000010,
STI_Health = 0x00000005,
STI_AbilityPower = 0x00008000,
STI_AttackDamage = 0x00002000,
STI_Mana = 0x0000000a,
};
#endif