| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | #pragma once
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ַ
 | 
					
						
							|  |  |  |  | typedef DWORD SendPacks(); | 
					
						
							|  |  |  |  | static SendPacks* _SendPacks = (SendPacks*)0x1127EC0; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD>Class this<69><73>ַ
 | 
					
						
							|  |  |  |  | typedef DWORD SendClass; | 
					
						
							|  |  |  |  | static  SendClass* _SendClass = (SendClass*)0x1AEB6E4; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> <20><>ַ
 | 
					
						
							|  |  |  |  | typedef int(__fastcall* SendPacksType)(DWORD thisc, int Seat, int Parm); | 
					
						
							|  |  |  |  | static SendPacksType _SendpacksType = (SendPacksType)0x1127D60; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> BYTE
 | 
					
						
							|  |  |  |  | typedef int(__fastcall* SendPacksByte)(DWORD thisc, int Seat, int Parm); | 
					
						
							|  |  |  |  | static SendPacksByte _SendPacksByte = (SendPacksByte)0x1128550; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> WORD
 | 
					
						
							|  |  |  |  | typedef int(__fastcall* SendPacksWORD)(DWORD thisc, int Seat, int Parm); | 
					
						
							|  |  |  |  | static SendPacksWORD _SendPacksWord = (SendPacksWORD)0x1128580; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> DWORD
 | 
					
						
							|  |  |  |  | typedef int(__fastcall* SendPacksDWORD)(DWORD thisc, int Seat, int Parm); | 
					
						
							|  |  |  |  | static SendPacksDWORD _SendPacksDWord = (SendPacksDWORD)0x11285B0; | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-15 09:21:02 +08:00
										 |  |  |  | //<2F><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD> char
 | 
					
						
							|  |  |  |  | typedef int(__fastcall* SendPacksChar)(DWORD thisc, int Seat, char* Parm,int Size); | 
					
						
							|  |  |  |  | static SendPacksChar _SendPacksChar = (SendPacksChar)0x11285E0; | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD>Class this<69><73>ַ
 | 
					
						
							|  |  |  |  | typedef DWORD NoticeClass; | 
					
						
							|  |  |  |  | static  NoticeClass* _NoticeClass = (NoticeClass*)0x1A5FB20; | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD>CALL
 | 
					
						
							|  |  |  |  | typedef void(__fastcall* NoticeCall)(DWORD thisc, int Seat, char* a1, DWORD a2, DWORD a3, DWORD a4, DWORD a5, DWORD a6); | 
					
						
							|  |  |  |  | static NoticeCall _Noticecall = (NoticeCall)0x9536C0; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD><EFBFBD>CALL
 | 
					
						
							|  |  |  |  | typedef void(__fastcall* NoticeTCall)(DWORD thisc, DWORD Seat, DWORD a1, char* a2, DWORD a3); | 
					
						
							|  |  |  |  | static NoticeTCall _NoticeTcall = (NoticeTCall)0xE6E070; | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | //<2F><><EFBFBD>ƣ<EFBFBD>//TODO
 | 
					
						
							|  |  |  |  | typedef int(DrawTe)(DWORD thisc, int a2, int a3, int a4, int a5, int a6, __int64 a7, float a8, float a9, float a10, int a11, int a12); | 
					
						
							|  |  |  |  | //static NoticeTCall _NoticeTcall = (NoticeTCall)0xE6E070;
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-24 02:31:42 +08:00
										 |  |  |  | //<2F><><EFBFBD><EFBFBD><EFBFBD>ַ<EFBFBD>
 | 
					
						
							|  |  |  |  | typedef void(__fastcall* DrawCode)(DWORD thisc, int Seat, int a3, int a4, int a5, int a6); | 
					
						
							|  |  |  |  | static DrawCode DrawCodeF; | 
					
						
							|  |  |  |  | #define INIT_NUT_DRAWCODE 0x1206BD0
 | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-06 00:08:26 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | constexpr int Byte_Length = 6; | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-24 02:31:42 +08:00
										 |  |  |  | //0x1b45b94
 | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | class DNFTOOL | 
					
						
							|  |  |  |  | { | 
					
						
							|  |  |  |  | private: | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | public: | 
					
						
							| 
									
										
										
										
											2023-05-12 16:08:39 +08:00
										 |  |  |  | 	//<2F><>ȡ<EFBFBD>û<EFBFBD>IP
 | 
					
						
							|  |  |  |  | 	static std::string GetUserIp(); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 	//<2F><>֤IP<49>Ƿ<EFBFBD>ͨ<EFBFBD><CDA8>
 | 
					
						
							|  |  |  |  | 	static bool ReqIpLicense(std::string ippack, std::string Rqip); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 	//<2F><>ȡEXEʹ<45><CAB9>ͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static int GetExeNutWrtNum(int Pos); | 
					
						
							|  |  |  |  | 	//дEXEʹ<45><CAB9>ͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static void SetExeNutWrtNum(int Pos, int num); | 
					
						
							|  |  |  |  | 	//<2F><>ȡNutͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static int GetNutArrNum(int Nutͷ<EFBFBD><EFBFBD>ַ, int Pos); | 
					
						
							|  |  |  |  | 	//дNutͷ <20><>λ<EFBFBD><CEBB><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static void SetNutArrNum(int Nutͷ<EFBFBD><EFBFBD>ַ, int Pos, int num); | 
					
						
							|  |  |  |  | 	//<2F><><EFBFBD>ڴ<EFBFBD>ƫ<EFBFBD>Ƶ<EFBFBD>ַ
 | 
					
						
							| 
									
										
										
										
											2022-03-27 17:17:12 +08:00
										 |  |  |  | 	static int GetHook(int Addr, std::string <EFBFBD><EFBFBD>ַ,int Type = 0); | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 	//<2F><><EFBFBD>ܶ<EFBFBD>ȡ
 | 
					
						
							|  |  |  |  | 	static int DNFDeCode(int Address); | 
					
						
							|  |  |  |  | 	//<2F><><EFBFBD><EFBFBD>д<EFBFBD><D0B4>
 | 
					
						
							|  |  |  |  | 	static void DNFEnCode(int AddreSs, int Data); | 
					
						
							| 
									
										
										
										
											2023-04-14 14:56:01 +08:00
										 |  |  |  | 	//DNFTOOL::ReadInt
 | 
					
						
							|  |  |  |  | 	static int ReadInt(int addr); | 
					
						
							|  |  |  |  | 	//DNFTOOL::WriteInt
 | 
					
						
							|  |  |  |  | 	static void WriteInt(int addr, int buf); | 
					
						
							|  |  |  |  | 	//д<>ֽ<EFBFBD><D6BD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static void WriteByteArr(int addr, BYTE buf[], int len); | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 	//<2F><>ȡװ<C8A1><D7B0>ƫ<EFBFBD>Ƶ<EFBFBD>ַ
 | 
					
						
							|  |  |  |  | 	static int GetEquAddr(int addr); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-22 02:16:45 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-06 00:08:26 +08:00
										 |  |  |  | 	//UTF8תUnicode
 | 
					
						
							|  |  |  |  | 	static char* U8ToUnicode(const char* szU8); | 
					
						
							|  |  |  |  | 	//Unicode ת UTF8
 | 
					
						
							|  |  |  |  | 	static char* UnicodeToUtf8(const wchar_t* unicode); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-22 02:16:45 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-21 12:48:20 +08:00
										 |  |  |  | 	//wchar_t* ת char*
 | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 	static char* UnicodeToAnsi(const wchar_t* szStr, char* pResult, int maxLen); | 
					
						
							| 
									
										
										
										
											2022-04-22 02:16:45 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 	//wchar_t* ת char*		<09><><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static char* wchar_tTochar(wchar_t* wbuffer); | 
					
						
							|  |  |  |  | 	//char* ת wchar_t*		<09><><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static wchar_t* charTowchar_t(char* wbuffer); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-24 18:02:17 +08:00
										 |  |  |  | 	//char* Windows<77><73><EFBFBD><EFBFBD> ת wchar_t*
 | 
					
						
							|  |  |  |  | 	static wchar_t* char2wchar(const char* cchar); | 
					
						
							|  |  |  |  | 	//wchar_t* Windows<77><73><EFBFBD><EFBFBD> ת char*
 | 
					
						
							|  |  |  |  | 	static char* wchar2char(const wchar_t* wchar); | 
					
						
							|  |  |  |  | 
 | 
					
						
							|  |  |  |  | 	//Squirrel  wchar_t* ת Unicode
 | 
					
						
							|  |  |  |  | 	static wchar_t* SquirrelW2W(const wchar_t* wchar); | 
					
						
							| 
									
										
										
										
											2022-09-06 00:08:26 +08:00
										 |  |  |  | 	//Squirrel  UTF8 wchar_t* ת Unicode
 | 
					
						
							|  |  |  |  | 	static char* SquirrelU2W(const wchar_t* wchar); | 
					
						
							| 
									
										
										
										
											2022-04-24 18:02:17 +08:00
										 |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-04-21 12:48:20 +08:00
										 |  |  |  | 	//wchar_t* ת string*
 | 
					
						
							|  |  |  |  | 	static void Wchar_tToString(std::string& szDst, wchar_t* wchar); | 
					
						
							|  |  |  |  | 	//char*	ת	wchar_t*
 | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 	static wchar_t* AnsiToUnicode(const char* szStr, wchar_t* pResult, int maxLen); | 
					
						
							| 
									
										
										
										
											2022-04-22 02:16:45 +08:00
										 |  |  |  | 	//string ת wchar_t*
 | 
					
						
							|  |  |  |  | 	static const wchar_t* GetWC(const char* c); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-09-06 00:08:26 +08:00
										 |  |  |  | 	//utf8 ת gb2312
 | 
					
						
							|  |  |  |  | 	static std::string UtfToGbk(const char* utf8); | 
					
						
							|  |  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2022-05-07 14:31:17 +08:00
										 |  |  |  | 	//<2F><><EFBFBD>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>ָ<EFBFBD><D6B8><EFBFBD><EFBFBD><EFBFBD>vector
 | 
					
						
							| 
									
										
										
										
											2022-04-23 00:49:13 +08:00
										 |  |  |  | 	static void Split(const std::string& src, std::vector<std::string>& dest, const std::string& separator = "->"); | 
					
						
							| 
									
										
										
										
											2022-05-07 14:31:17 +08:00
										 |  |  |  | 	//<2F>ж<EFBFBD><D0B6>ַ<EFBFBD><D6B7><EFBFBD><EFBFBD>Ƿ<EFBFBD>Ϊ<EFBFBD><CEAA><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static bool isNum(std::string str); | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 	//<2F><><EFBFBD>ڹ<EFBFBD><DAB9><EFBFBD> 0x10d
 | 
					
						
							|  |  |  |  | 	static void WindowsNotice(char* str, int type = 0x10d, int b = 0x0); | 
					
						
							|  |  |  |  | 	//GM<47><4D><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static void GMNotice(char* str, int type, int color); | 
					
						
							| 
									
										
										
										
											2022-04-21 12:56:05 +08:00
										 |  |  |  | 	//<2F><>ȡ<EFBFBD><C8A1>Ѷ<EFBFBD>ĵ<EFBFBD>IP
 | 
					
						
							| 
									
										
										
										
											2022-04-21 12:48:20 +08:00
										 |  |  |  | 	static std::string GetIP(); | 
					
						
							| 
									
										
										
										
											2022-09-06 00:08:26 +08:00
										 |  |  |  | 
 | 
					
						
							|  |  |  |  | 	//<2F><EFBFBD><DEB8>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD> <20><><EFBFBD><EFBFBD>ֵ<EFBFBD><D6B5>Դ<EFBFBD>ڴ<EFBFBD><DAB4><EFBFBD><EFBFBD><EFBFBD>
 | 
					
						
							|  |  |  |  | 	static 	DWORD Motify_memory_attributes(int address, DWORD attributes = PAGE_EXECUTE_READWRITE); | 
					
						
							| 
									
										
										
										
											2022-03-08 12:57:35 +08:00
										 |  |  |  | }; | 
					
						
							|  |  |  |  | 
 |