文章来源:未知 作者:礁石游戏网 发布时间:2024-10-21 07:09
魔兽争霸3秘籍代码
在战役模式下(多人游戏不可),敲回车,会出来对话框,然后把下面字符输入即可
无敌并一击必杀: whosyourdaddy
无限能量: thereisnospoon
任务模式里即使失败也继续游戏: strengthandhonor
地图全开: iseedeadpeople
立即胜利: allyourbasearebelongtous
立即失败: somebodysetusupthebomb
禁止任务默认的胜利条件: itvexesme
加黄金: keysersoze [黄金数量](如果未指定数量默认增加500)
加木材: leafittome [木材数量](如果未指定数量默认增加500)
加黄金和木材: greedisgood [数量](如果未指定数量默认增加500)
快速建造: warpten
无人口上限: pointbreak
快速研究技能: whoisjohngalt
快速升级: sharpandshiny
解除科技树限制: synergy
将时间直接设定到白昼: riseandshine
将时间直接设定到夜晚: lightsout
设定具体时间: daylightsavings [小时数]
让时间永远停留在白昼: daylightsavings
新建一个EXE的快捷方式,在属性的后面加上空格,输入-pdirM,M指的是你的MAPHACK的文件夹,也可能叫PLUGIN
#include <windows.h>
#include <winbase.h>
int main()
{
//Find wc3 windows
HWND hwar3=::FindWindow(NULL,Warcraft III);
HANDLE hcurrent=GetCurrentProcess();
HANDLE hToken;
BOOL bret=OpenProcessToken(hcurrent,40,&hToken);
LUID luid;
bret=LookupPrivilegeValue(NULL,SeDebugPrivilege,&luid);
TOKEN_PRIVILEGES NewState,PreviousState;
DWORD ReturnLength;
NewState.PrivilegeCount =1;
NewState.Privileges[0].Luid =luid;
NewState.Privileges[0].Attributes=2;
bret=AdjustTokenPrivileges(hToken,FALSE,&NewState,28,&PreviousState,&ReturnLength);
DWORD PID, TID;
TID = ::GetWindowThreadProcessId (hwar3, &PID);
//Open wc3 process
HANDLE hopen=OpenProcess( PROCESS_ALL_ACCESS|PROCESS_TERMINATE|PROCESS_VM_OPERATION|PROCESS_VM_READ|PROCESS_VM_WRITE,FALSE,PID);
//Write memory
DWORD data=0x74;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F4069F0,&data,1,0);
data=0x8B;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F406A0E,&data,1,0);
data=0x09;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F406A0F,&data,1,0);
data=0x90;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F406A10,&data,1,0);
data=0x8B;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F406A13,&data,1,<font col or=#800080>0);
data=0x09;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F406A14,&data,1,0);
data=0x90;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F406A15,&data,1,0);
data=0x90;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F29FE20,&data,1,0);
data=0x90;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F29FE21,&data,1,0);
data=0x00;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F149198,&data,1,0);
data=0x40;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F2A0803,&data,1,0);
data=0x33;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F2A0804,&data,1,0);
data=0xC0;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F2A0805,&data,1,0);
data=0x42;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F2A0806,&data,1,0);
data=0x33;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F2A0807,&data,1,0);
data=0xD2;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F2A0808,&data,1,0);
data=0xEB;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F14A0B4,&data,1,0);
data=0xEB;
bret=WriteProcessMemory(hopen,(LPVOID)0x6F2A0703,&data,1,0);
//Close handle
bret=CloseHandle(hopen);
return 0;
}
从网上找到的,用的是WINAPI,直接拿到窗口句柄然后改内存,不知道内存对不对,貌似能用。
上一篇:寻找幻兽帕鲁巨大蛋的攻略
下一篇:带你了解幻兽帕鲁移动家具的道具