怎么设计图改个内存就这复杂?? 游戏直接闪退
+++++++++++++++++++源码+++++++++++
void 设计图人偶()
{
int Offset[] = { 0 };
Offset[0] = 物品栏;
Offset[1] = 物品栏偏移;
Offset[2] = 0x0C;
Offset[3] = 0x04A4;
写内存偏移整数(pid, 人物基址, Offset, 0x0100700);
memset(Offset, 0, sizeof(Offset));
写内存偏移整数(pid, 0x0100700, Offset,0x010383);
写内存偏移整数(pid, 0x100704, Offset,- 1);
写内存偏移整数(pid, 0x100708, Offset, -1);
写内存偏移整数(pid, 0x10070C, Offset, 0x1000000);
公告(L"设计图人偶");
}
BOOL 写内存偏移整数(int Pid, int _Base, int _Offset[], int data)
{
HANDLE hProcess;
DWORD Base = 读内存整数(Pid, _Base);
int Lenght = sizeof(_Offset) / sizeof(int); if (Pid == -1)
{
hProcess = GetCurrentProcess(); //打开当前进程
}
else
{
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, (DWORD)Pid);//PROCESS_VM_READ
}
for (int i = 0; i < Lenght; i++)
{
Base = 读内存整数(Pid, _Offset[i] + Base);
} BOOL a = 写内存整数(Pid, Base, data); return a;
}
+++++++++++++++++++++++++++++++
@求朋友啊aa @
+++++++++++++++++++源码+++++++++++
void 设计图人偶()
{
int Offset[] = { 0 };
Offset[0] = 物品栏;
Offset[1] = 物品栏偏移;
Offset[2] = 0x0C;
Offset[3] = 0x04A4;
写内存偏移整数(pid, 人物基址, Offset, 0x0100700);
memset(Offset, 0, sizeof(Offset));
写内存偏移整数(pid, 0x0100700, Offset,0x010383);
写内存偏移整数(pid, 0x100704, Offset,- 1);
写内存偏移整数(pid, 0x100708, Offset, -1);
写内存偏移整数(pid, 0x10070C, Offset, 0x1000000);
公告(L"设计图人偶");
}
BOOL 写内存偏移整数(int Pid, int _Base, int _Offset[], int data)
{
HANDLE hProcess;
DWORD Base = 读内存整数(Pid, _Base);
int Lenght = sizeof(_Offset) / sizeof(int); if (Pid == -1)
{
hProcess = GetCurrentProcess(); //打开当前进程
}
else
{
hProcess = OpenProcess(PROCESS_ALL_ACCESS, FALSE, (DWORD)Pid);//PROCESS_VM_READ
}
for (int i = 0; i < Lenght; i++)
{
Base = 读内存整数(Pid, _Offset[i] + Base);
} BOOL a = 写内存整数(Pid, Base, data); return a;
}
+++++++++++++++++++++++++++++++
@求朋友啊aa @