/
Constants.h
198 lines (180 loc) · 9.82 KB
/
Constants.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
#pragma once
namespace Address {
const unsigned int GAME_PTR = 0x0023EAA8;
const unsigned int FUNC_STATUSMESSAGE = 0x005466D0;
const unsigned int FUNC_FLOATTEXT = 0x004E5340;
const unsigned int FUNC_RANDOMBYTE = 0x00542400;
const unsigned int FUNC_SENDLOOK = 0x004073B0;
const unsigned int FUNC_RENDERGAME = 0x0045B2F0;
const unsigned int CALL_PROJECTILE = 0x004105C0;
const unsigned int CALL_LOOKMESSAGE = 0x00413A51;
const unsigned int CALL_MESSAGEHANDLE = 0x004129B7;
const unsigned int CALL_PLACEOBJECT = 0x0040E1E6;
const unsigned int CALL_PLACEOBJECT2 = 0x0040E212;
const unsigned int CALL_CHANGEHEALTH = 0x0045DB66;
const unsigned int CALL_TEXTMESSAGE = 0x0045DCB6;
const unsigned int CALL_SETACTION = 0x0045868D;
const unsigned int CALL_PRINTNAME = 0x004F54A3;
const unsigned int CALL_PRINTFPS = 0x0045B618;
const unsigned int ADDR_ALWAYSFPS = 0x0045B554;
const unsigned int SHOW_FPS = 0x0063EA1C;
// ContextMenu
const unsigned int FUNC_ADDCONTEXTMENU = 0x00453930;
const unsigned int EVENT_ONCLICKCONTEXTMENU = 0x00450510;
const unsigned int CALL_CONTEXTMENU_MESSAGE = 0x004545F5;
// End ContextMenu
// Memory auto generated 872
const unsigned int PLAYER_VIPLIST = 0x0063EAA8;
const unsigned int PLAYER_VIPLIST_ONLINE = 0x00640D08;
const unsigned int PLAYER_VIPLIST_SIZE = 0x00640D0C;
const unsigned int PLAYER_CONDITION = 0x00640D10;
const unsigned int PLAYER_FIST_PERC = 0x00640D14;
const unsigned int PLAYER_CLUB_PERC = 0x00640D18;
const unsigned int PLAYER_SWORD_PERC = 0x00640D1C;
const unsigned int PLAYER_AXE_PERC = 0x00640D20;
const unsigned int PLAYER_DISTANCE_PERC = 0x00640D24;
const unsigned int PLAYER_SHIELDING_PERC = 0x00640D28;
const unsigned int PLAYER_FISHING_PERC = 0x00640D2C;
const unsigned int PLAYER_FIST = 0x00640D30;
const unsigned int PLAYER_CLUB = 0x00640D34;
const unsigned int PLAYER_SWORD = 0x00640D38;
const unsigned int PLAYER_AXE = 0x00640D3C;
const unsigned int PLAYER_DISTANCE = 0x00640D40;
const unsigned int PLAYER_SHIELDING = 0x00640D44;
const unsigned int PLAYER_FISHING = 0x00640D48;
const unsigned int PLAYER_MOUSEOVER_ID = 0x00640D4C;
const unsigned int PLAYER_FOLLOW_ID = 0x00640D50;
const unsigned int PLAYER_ATTACK_ID = 0x00640D54;
const unsigned int PLAYER_CAP = 0x00640D58;
const unsigned int PLAYER_STAMINA = 0x00640D5C;
const unsigned int PLAYER_SOULPOINT = 0x00640D60;
const unsigned int PLAYER_MANA_MAX = 0x00640D64;
const unsigned int PLAYER_MANA = 0x00640D68;
const unsigned int PLAYER_MAGIC_LEVEL_PERC = 0x00640D6C;
const unsigned int PLAYER_LEVEL_PERC = 0x00640D70;
const unsigned int PLAYER_MAGIC_LEVEL = 0x00640D74;
const unsigned int PLAYER_LEVEL = 0x00640D78;
const unsigned int PLAYER_EXPERIENCE = 0x00640D80;
const unsigned int PLAYER_HEALTH_MAX = 0x00640D88;
const unsigned int PLAYER_HEALTH = 0x00640D8C;
const unsigned int PLAYER_ID = 0x00640D90;
const unsigned int PLAYER_GOTO_Z = 0x00640DCC;
const unsigned int PLAYER_GOTO_Y = 0x00640DD0;
const unsigned int PLAYER_GOTO_X = 0x00640DD4;
const unsigned int PLAYER_GOTO_DIRECTION = 0x00640DD8;
const unsigned int PLAYER_MOVING_Y = 0x00640DDC;
const unsigned int PLAYER_MOVING_X = 0x00640DE0;
const unsigned int BATTLELIST_BEGIN = 0x00640E18;
const unsigned int BATTLELIST_END = 0x0064B610;
const unsigned int PLAYER_HEAD_SLOT = 0x0067A0C8;
const unsigned int PLAYER_NECK_SLOT = 0x0067A0D4;
const unsigned int PLAYER_CONTAINER_SLOT = 0x0067A0E0;
const unsigned int PLAYER_BODY_SLOT = 0x0067A0EC;
const unsigned int PLAYER_LEFT_HAND_SLOT = 0x0067A0F8;
const unsigned int PLAYER_LEFT_HAND_COUNT = 0x0067A0FC;
const unsigned int PLAYER_RIGHT_HAND_SLOT = 0x0067A104;
const unsigned int PLAYER_RIGHT_HAND_COUNT = 0x0067A108;
const unsigned int PLAYER_LEGS_SLOT = 0x0067A110;
const unsigned int PLAYER_FEET_SLOT = 0x0067A11C;
const unsigned int PLAYER_RING_SLOT = 0x0067A128;
const unsigned int PLAYER_ARROW_SLOT = 0x0067A134;
const unsigned int PLAYER_ARROW_COUNT = 0x0067A138;
const unsigned int CONTAINER_BEGIN = 0x0067A140;
const unsigned int CONTAINER_END = 0x0067C000;
const unsigned int ACCOUNT_PASSWORD = 0x007CA248;
const unsigned int ACCOUNT_NAME = 0x007CA268;
const unsigned int CONNECTION_STATUS = 0x007CA28C;
const unsigned int RIGHT_CLICK_CREATURE_ID = 0x007CA290;
const unsigned int RIGHT_CLICK_Z = 0x007CA294;
const unsigned int RIGHT_CLICK_Y = 0x007CA298;
const unsigned int RIGHT_CLICK_X = 0x007CA29C;
const unsigned int RIGHT_CLICK_STACK = 0x007CA2A0;
const unsigned int RIGHT_CLICK_Z2 = 0x007CA2A4;
const unsigned int RIGHT_CLICK_Y2 = 0x007CA2A8;
const unsigned int RIGHT_CLICK_X2 = 0x007CA2AC;
const unsigned int RIGHT_CLICK_STACK2 = 0x007CA2B0;
const unsigned int LEFT_CLICK_Z = 0x007CA2C0;
const unsigned int LEFT_CLICK_Y = 0x007CA2C4;
const unsigned int LEFT_CLICK_X = 0x007CA2C8;
const unsigned int LEFT_CLICK_STACK = 0x007CA2CC;
const unsigned int LEFT_CLICK_COORD_Y = 0x007CA2D0;
const unsigned int LEFT_CLICK_COORD_X = 0x007CA2D4;
const unsigned int WINDOW_HEIGHT = 0x007CA2E0;
const unsigned int WINDOW_WIDTH = 0x007CA2E4;
const unsigned int ACTIONSTATE = 0x007CA2EC;
const unsigned int LEFT_CLICK_ITEM_ID = 0x007CA32C;
const unsigned int LEFT_CLICK_ITEM_COUNT = 0x007CA330;
const unsigned int RIGHT_CLICK_ITEM_ID = 0x007CA338;
const unsigned int RIGHT_CLICK_ITEM_COUNT = 0x007CA33C;
// auto generated end
const unsigned int PLAYER_Z = 0x0067CA30;
const unsigned int PLAYER_Y = 0x0067CA34;
const unsigned int PLAYER_X = 0x0067CA38;
const unsigned int XRAY = 0x004F247B;
const unsigned int LEVELSPY1 = 0x004F433A;
const unsigned int LEVELSPY2 = 0x004F443F;
const unsigned int LEVELSPY3 = 0x004F44C0;
const unsigned int LEVELSPYPTR = 0x0067968C;
const unsigned int GAMESCREENPTR = 0x0067C9F8;
const unsigned int SEND_ADR = 0x005B9614;
const unsigned int SOCKET_PTR = 0x007C6CC0;
const unsigned int PACKET_PTR = SOCKET_PTR + 0x1C;
const unsigned int XTEA_KEY = SOCKET_PTR + 0x2C;
const unsigned int ISONLINE = CONNECTION_STATUS;
const unsigned int LOOKITEMID = RIGHT_CLICK_ITEM_ID;
};
namespace HardcoreBytes {
const BYTE LevelSpyOriginal[6] = {0x89, 0x86, 0xC0, 0x5B, 0x00, 0x00};
const BYTE XRayOff[2] = {0x75, 0x48};
const BYTE XRayOn[2] = {0x75, 0x0A};
const BYTE FullLightOn[4] = {0x90, 0x90, 0xBB, 0xFF};
const BYTE FullLightOff[4] = {0x7E, 0x05, 0xBB, 0x80};
}
enum Items {
StrongHealthPotion = 236,
StrongManaPotion = 237,
GreatManaPotion = 238,
GreatHealthPotion = 239,
HealthPotion = 266,
ManaPotion = 268,
IntenseHealingRune = 3152,
SuddenDeathRune = 3155,
UltimateHealingRune = 3160,
MagicwallRune = 3180,
HeavyMagicMissleRune = 3198,
ExplosionRune = 3200,
GreatSpiritPotion = 7642,
UltimateHealthPotion = 7643,
};
enum Direction {
North,
East,
South,
West
};
enum PlayerStates {
Poisoned = 1,
Burning = 2,
Electrified = 4,
Drunk = 8,
MagicShield = 16,
Slowed = 32,
Haste = 64,
LogoutBlock = 128,
Drowning = 256,
Freezing = 512,
Dazzled = 1024,
Cursed = 2048
};
enum EquipSlot {
Head = 1,
Neck,
Backpack,
Body,
LeftHand,
RightHand,
Legs,
Feet,
Ring,
Ammo
};