-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathCrystalWall.h
More file actions
59 lines (51 loc) · 1.13 KB
/
CrystalWall.h
File metadata and controls
59 lines (51 loc) · 1.13 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
#if (PACK_EDITION>=3)
#if (CRYSTAL_EDITION == 1)
#define CRYSTALWALL_MAXCRC 10
#define CHEATDETECTIONMETHOD_COUNT 8
struct PMSG_SENDCRC
{
PBMSG_HEAD h;
BYTE SubCode;
BYTE SubSubCode;
ULONG CRC[CRYSTALWALL_MAXCRC];
};
struct PMSG_SENDCHEATDATA
{
PBMSG_HEAD h;
BYTE SubCode;
BYTE SubSubCode;
int Extra;
};
class cCrystalWall
{
public:
void Read(char * FilePath);
void SendCRC(int aIndex);
void ProtocolCore(int aIndex, BYTE * aRecv);
bool Action(int aIndex, BYTE Cheat);
void RecvPing(int aIndex);
void CheckPing(int aIndex);
bool ItemSerialAction(int aIndex);
BYTE UseTTMain;
BYTE MsgShowToClient;
BYTE UseCrystalShield;
BYTE EncryptKey;
BYTE CheckItemSerialOnOpenVault;
BYTE IsHaveSameSerialDeleteItems;
BYTE IsHaveSameSerialKickPlayer;
//Speed Max var:
BYTE SpeedMax_UseMaxLimit;
WORD SpeedMax_Physic;
WORD SpeedMax_Magic;
BYTE Crystal_IsAntiSpeedHack;
int Crystal_IsAntiSpeedHack_MaxDif;
BYTE Crystal_IsAntiSpeedHack_MinDet;
WORD Crystal_PingCheckSeconds;
private:
BYTE IsSendCRC;
ULONG CRC[CRYSTALWALL_MAXCRC];
int OnCheatAction[CHEATDETECTIONMETHOD_COUNT][4];
};
extern cCrystalWall CrystalWall;
#endif
#endif