forked from spudgy/IntWars
-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.h
186 lines (157 loc) · 4.46 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
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
/*
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 = 0x60,
};
//Currently attuned to Live 4.5.0.264
enum PacketCmd : uint8
{ //Channel //Type
PKT_KeyCheck = 0x00, //0 //UPDATED
PKT_S2C_EndSpawn = 0x11, //? //UPDATED
PKT_C2S_QueryStatusReq = 0x14, //1 //UPDATED
PKT_S2C_SkillUp = 0x15, //3 //UPDATED
PKT_C2S_Ping_Load_Info = 0x16, //1 //UPDATED
PKT_S2C_ViewAns = 0x2B, //3 //UPDATED
PKT_C2S_ViewReq = 0x2D, //1 //UPDATED
PKT_C2S_SkillUp = 0x38, //1 //UPDATED
PKT_S2C_AttentionPing = 0x3F, //3 //UPDATED
PKT_S2C_Emotion = 0x41, //3 UPDATED
PKT_C2S_Emotion = 0x47, //1 UPDATED
PKT_S2C_HeroSpawn = 0x4B, //3 UPDATED
PKT_S2C_Announce = 0x4C, //3
PKT_C2S_StartGame = 0x51, //1 //UPDATED
PKT_S2C_SynchVersion = 0x53, //3 //UPDATED
PKT_C2S_ScoreBord = 0x55, //1 //UPDATED
PKT_C2S_AttentionPing = 0x56, //1 //UPDATED
PKT_S2C_StartGame = 0x5B, //? //UPDATED
PKT_S2C_StartSpawn = 0x61, //? //UPDATED
//PKT_C2S_OpenShop = 0x63, //1 - DEPRECATED
PKT_C2S_ClientReady = 0x64, //6 //UPDATED ?
PKT_S2C_LoadHero = 0x65, //6 //UPDATED
PKT_S2C_LoadName = 0x66, //6 //UPDATED
PKT_S2C_LoadScreenInfo = 0x67, //6 //UPDATED
PKT_ChatBoxMessage = 0x68, //5 //UPDATED
PKT_S2C_BuyItemAns = 0x6E, //3 //UPDATED
PKT_C2S_MoveReq = 0x71, //1 //UPDATED
PKT_C2S_MoveConfirm = 0x76, //1 //UPDATED
PKT_C2S_LockCamera = 0x80, //1 //UPDATED
PKT_C2S_BuyItemReq = 0x81, //1 //UPDATED
PKT_S2C_QueryStatusAns = 0x87, //? //UPDATED
PKT_C2S_Exit = 0x8E, //1 //UPDATED
PKT_World_SendGameNumber = 0x91, //3 //UPDATED
PKT_S2C_Ping_Load_Info = 0x94, //4 //UPDATED
PKT_S2C_TurretSpawn = 0x9C, //3 UPDATED
PKT_C2S_Surrender = 0xA3, //1 //UPDATED
//PKT_C2S_GameNumberReq = 0xA6, //1 //DEPRECATED
PKT_C2S_StatsConfirm = 0xA7, //1 UPDATED
PKT_C2S_Click = 0xAE, //1 //UPDATED
PKT_C2S_SynchVersion = 0xBC, //1 //UPDATED
PKT_C2S_CharLoaded = 0xBD, //1 //UPDATED
PKT_S2C_CharStats = 0xC3, //4 //UPDATED
PKT_S2C_FogUpdate2 = 0x23, //3 //UPDATED?
PKT_S2C_LevelPropSpawn = 0xCF, //3 UPDATED
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 = 7,
};
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