81 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C++
		
	
	
	
			
		
		
	
	
			81 lines
		
	
	
		
			2.3 KiB
		
	
	
	
		
			C++
		
	
	
	
| #pragma once
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| //发包函数 地址
 | |
| typedef DWORD SendPacks();
 | |
| static SendPacks* _SendPacks = (SendPacks*)0x1127EC0;
 | |
| 
 | |
| //发包Class this地址
 | |
| typedef DWORD SendClass;
 | |
| static  SendClass* _SendClass = (SendClass*)0x1AEB6E4;
 | |
| 
 | |
| //发包类型 地址
 | |
| typedef int(__fastcall* SendPacksType)(DWORD thisc, int Seat, int Parm);
 | |
| static SendPacksType _SendpacksType = (SendPacksType)0x1127D60;
 | |
| 
 | |
| //发包参数 BYTE
 | |
| typedef int(__fastcall* SendPacksByte)(DWORD thisc, int Seat, int Parm);
 | |
| static SendPacksByte _SendPacksByte = (SendPacksByte)0x1128550;
 | |
| 
 | |
| //发包参数 WORD
 | |
| typedef int(__fastcall* SendPacksWORD)(DWORD thisc, int Seat, int Parm);
 | |
| static SendPacksWORD _SendPacksWord = (SendPacksWORD)0x1128580;
 | |
| 
 | |
| //发包参数 DWORD
 | |
| typedef int(__fastcall* SendPacksDWORD)(DWORD thisc, int Seat, int Parm);
 | |
| static SendPacksDWORD _SendPacksDWord = (SendPacksDWORD)0x11285B0;
 | |
| 
 | |
| 
 | |
| //公告Class this地址
 | |
| typedef DWORD NoticeClass;
 | |
| static  NoticeClass* _NoticeClass = (NoticeClass*)0x1A5FB20;
 | |
| //公告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;
 | |
| 
 | |
| //窗口CALL
 | |
| typedef void(__fastcall* NoticeTCall)(DWORD thisc, DWORD Seat, DWORD a1, char* a2, DWORD a3);
 | |
| static NoticeTCall _NoticeTcall = (NoticeTCall)0xE6E070;
 | |
| 
 | |
| //绘制?//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;
 | |
| 
 | |
| 
 | |
| class DNFTOOL
 | |
| {
 | |
| private:
 | |
| 
 | |
| 
 | |
| public:
 | |
| 
 | |
| 	//获取EXE使用头 号位数据
 | |
| 	static int GetExeNutWrtNum(int Pos);
 | |
| 	//写EXE使用头 号位数据
 | |
| 	static void SetExeNutWrtNum(int Pos, int num);
 | |
| 	//获取Nut头 号位数据
 | |
| 	static int GetNutArrNum(int Nut头地址, int Pos);
 | |
| 	//写Nut头 号位数据
 | |
| 	static void SetNutArrNum(int Nut头地址, int Pos, int num);
 | |
| 	//读内存偏移地址
 | |
| 	static int GetHook(int Addr, std::string 地址);
 | |
| 	//解密读取
 | |
| 	static int DNFDeCode(int Address);
 | |
| 	//加密写入
 | |
| 	static void DNFEnCode(int AddreSs, int Data);
 | |
| 
 | |
| 	//获取装备偏移地址
 | |
| 	static int GetEquAddr(int addr);
 | |
| 
 | |
| 	static char* UnicodeToAnsi(const wchar_t* szStr, char* pResult, int maxLen);
 | |
| 	static wchar_t* AnsiToUnicode(const char* szStr, wchar_t* pResult, int maxLen);
 | |
| 
 | |
| 	//窗口公告 0x10d
 | |
| 	static void WindowsNotice(char* str, int type = 0x10d, int b = 0x0);
 | |
| 	//GM公告
 | |
| 	static void GMNotice(char* str, int type, int color);
 | |
| };
 | |
| 
 |