#include <bits/stdc++.h> #include <windows.h> #include <cstdlib> #include <conio.h> #include <stdio.h> #include <time.h> #include <ctime> #include <thread> #include <fstream> #define know(VK_NONAME) ((GetAsyncKeyState(VK_NONAME)&0x8000)?1:0) using namespace std; #define int long long HWND h=GetForegroundWindow(); POINT cursorPos; void getm(int &florrx,int &florry) { CONSOLE_FONT_INFO f; GetCurrentConsoleFont(GetStdHandle(STD_OUTPUT_HANDLE),FALSE,&f); GetCursorPos(&cursorPos); ScreenToClient(h,&cursorPos); florrx=cursorPos.y/f.dwFontSize.Y+1; florry=cursorPos.x/f.dwFontSize.X+1; return; } bool GetCurrentCursorPos(int& currentRow, int& currentCol) { HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); if (hOut == INVALID_HANDLE_VALUE) return false; CONSOLE_SCREEN_BUFFER_INFO csbi; if (!GetConsoleScreenBufferInfo(hOut, &csbi)) return false; currentCol = csbi.dwCursorPosition.X; currentRow = csbi.dwCursorPosition.Y; return true; } bool IsKeyPressed(int vkCode) { return (GetAsyncKeyState(vkCode) & 0x8000) != 0; } void WaitForKeyRelease(int vkCode) { while (IsKeyPressed(vkCode)) Sleep(10); } string ReadNumberWithVirtualKey() { string input; while (114514) { for (char c='0';c<='9';c++) if (IsKeyPressed(c)) { input+=c; cout<<c; WaitForKeyRelease(c); break; } if (IsKeyPressed(VK_BACK)&&!input.empty()) { input.pop_back(); std::cout << "\b \b"; WaitForKeyRelease(VK_BACK); } if (IsKeyPressed(VK_RETURN)) { WaitForKeyRelease(VK_RETURN); cout<<endl; if(!input.empty()) break; } if (IsKeyPressed(VK_SPACE)) { WaitForKeyRelease(VK_SPACE); cout<<" "; if(!input.empty()) break; } Sleep(20); } return input; } string playername; bool ts=false; bool GetCurrent; bool SetConsoleCursorPosEx(int row, int col) { HANDLE hOut = GetStdHandle(STD_OUTPUT_HANDLE); if (hOut == INVALID_HANDLE_VALUE) return false; COORD coord = {static_cast<SHORT>(col), static_cast<SHORT>(row)}; return SetConsoleCursorPosition(hOut, coord); } bool insuper=false; char cchar(int n) { return char(n+33); } int loots[9][3]= { {0,0,0}, {0,0,100}, {0,40,60}, {5,75,20}, {10,78,12}, {4,91,5}, {10,88,2}, {78,21,1}, {75,25,0}, }; int o[8]={0,7,10,15,32,65,128,256}; int coin=0; int trade[10]={0,5,30,250,1500,8000,45000,250000,1500000,8000000}; int supernumber=5; int petalnumber=20; int xp=0,level=1; int craft[10][105]; bool cancraft[105]; bool miss(int rnd) { return rand()%100+1<=rnd; } struct apetal { int NUM; int LEV; }; int loadout=5; apetal lo[11]; struct PETAL { int damage; int ant; int antdamage; int anthealth; int poison; int psecond; int number; int relod; int heal; string name; }petal[105]; struct NEED { int ntp; int MAX; string name; int l; }need[105]; int superhealth; int superzone; bool is_super_spawn=false; int supermap; int tp=0; int playerhealth=20; int supermob; int PET; bool db=false; string spawnplace; struct PT { int health; int damage; int mp; int sm; int lv; int rh; }; struct SPG { int T; int D; }; int g=33; int toint (float a) { return ((int) (a * 10 + 5)) / 10; } void SetPos (float xxx, float poki) { int xx = toint (xxx), pp = toint (poki); COORD pos; pos.X = pp * 2; pos.Y = xx; SetConsoleCursorPosition (GetStdHandle (STD_OUTPUT_HANDLE), pos); } string tostring(int num) { if(num==1) return "1"; else if(num==2) return "2"; else if(num==3) return "3"; else if(num==4) return "4"; else if(num==5) return "5"; else if(num==6) return "6"; else if(num==7) return "7"; else if(num==8) return "8"; else if(num==9) return "9"; else return "0"; } void Color (int aa) { if (aa == 0 || aa == 14 || aa == 20) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (aa == 1 || aa == 12) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (aa == 2) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_GREEN); } else if (aa == 3) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_BLUE); } else if (aa == 4 || aa == 11) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED); } else if (aa == 5 || aa == 13) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|FOREGROUND_GREEN); } else if (aa == 7) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (aa == 15) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY); } else if (aa == 16) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_GREEN); } else if (aa == 17) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED); } else if (aa == 8) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_RED|FOREGROUND_GREEN|FOREGROUND_BLUE); } else if (aa == 6) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_BLUE); } else if (aa == 9) { SetConsoleTextAttribute (GetStdHandle (STD_OUTPUT_HANDLE), FOREGROUND_INTENSITY|FOREGROUND_RED|BACKGROUND_RED|BACKGROUND_GREEN); } } void color(int le) { int ccc[105]={0,16,13,6,3,17,1,11,2,15}; Color(ccc[le]); return; } int skillnum=5; void dout(string str) { for(int i=0;i<str.size();i++) { Sleep(20); cout<<str[i]; } return; } string superm(int num) { if(num==1) return "Common"; else if(num==2) return "Unusual"; else if(num==3) return "Rare"; else if(num==4) return "Epic"; else if(num==5) return "Legendary"; else if(num==6) return "Mithic"; else if(num==7) return "Ultra"; else if(num==8) return "Super"; else return "Unique"; } string randname() { int l=rand()%8+1; l+=3; string res=""; while(l--) { int randchar=rand()%5+1; if(randchar==1) res+="_"; else if(randchar<=3) res+=tostring((rand()%10+1)-1); else { randchar=rand()%2+1; if(randchar==1) { randchar=rand()%26+1; res+=char('A'+randchar-1); } else { randchar=rand()%26+1; res+=char('a'+randchar-1); } } } return res; } struct MOB { int rnd; int health; int damage; int gave; int A; vector<int>loot; string name; }mob[6][105]; int levelneedxp(int l) { int res=30; for(int i=1;i<l;i++) res*=1.2; return res; } int mobdata(int real,int data) { int r=pow(real,4.2); if(real>=6) { if(real>=7) { if(real>=8) return data*r*pow(2,real-5)*200+rand()%99+1; return data*r*pow(2,real-5)*50+rand()%99+1; } return data*r*pow(2,real-5)*10+rand()%9+1; } return data*r; } int petaldata(int real,int data) { return data*pow(real,4.2); } void draw() { SetPos(0,g-1); cout<<playername<<" level:"<<level<<" xp:"<<xp<<"/"<<levelneedxp(level)<<" coin:"<<coin; SetPos(1,g-1); cout<<"+"; for(int i=1;i<=50;i++) cout<<"-"; cout<<"+"; SetPos(2,g-1); cout<<"|"; for(int i=1;i<=50;i++) cout<<" "; cout<<"|"; SetPos(3,g-1); cout<<"+"; for(int i=1;i<=50;i++) cout<<"-"; cout<<"+"; SetPos(0,0); } void super() { srand(time(0)); srand(time(0)); while(1) { Sleep(1000); int is_super=rand()%100+1; if(is_super==1) { supermob=rand()%supernumber+1; supermap=rand()%5+1; int currRow, currCol; GetCurrentCursorPos(currRow, currCol); SetPos(2,g); Color(2); cout<<"A super "<<mob[supermap][supermob].name<<" has spawned somewhere!\n"; Color(0); SetPos(currRow, currCol); superhealth=mobdata(8,mob[supermap][supermob].health); int spawnzone=rand()%100+1; if(spawnzone>=50) superzone=7; else if(spawnzone>=20) superzone=6; else if(spawnzone>=10) superzone=5; else if(spawnzone>=6) superzone=4; else if(spawnzone>=3) superzone=3; else if(spawnzone>=2) superzone=2; else superzone=1; is_super_spawn=true; int rsuperhealth=superhealth; while(true) { Sleep(5000); superhealth-=rsuperhealth/100*(rand()%7+1); if(insuper) { int currRow, currCol; GetCurrentCursorPos(currRow, currCol); SetPos(0,0); color(8); for(int i=1;i<=double(superhealth)/double(rsuperhealth)*25;i++) cout<<"#"; color(9); for(int i=1;i<=25-double(superhealth)/double(rsuperhealth)*25;i++) cout<<"#"; Color(0); SetPos(currRow, currCol/2); } if(superhealth<=0) { is_super_spawn=false; int currRow, currCol; GetCurrentCursorPos(currRow, currCol); SetPos(2,g); Color(2); cout<<"A super "<<mob[supermap][supermob].name<<" has defeated by "<<randname()<<"!\n"; Color(0); SetPos(0,0); SetPos(currRow, currCol/2); superhealth=0; rsuperhealth=0; supermap=0; superzone=0; break; } } } } } void dead() { sb: system("cls"); draw(); cout<<"1.Garden\n"; cout<<"2.Ocean\n"; cout<<"3.Desert\n"; cout<<"4.Jungle\n"; cout<<"5.Hel\n"; cout<<"6.skill\n"; cout<<"7.craft\n"; cout<<"8.save your flower\n"; cout<<"9.play your flower\n"; cout<<"10.NPC\nRight Click!"; int numberchooce=1; int last=1; while(114514) { int x,y; getm(x,y); SetPos(last-1,0); if(last>0&&last<=10) cout<<last; numberchooce=x; last=numberchooce; if(x>0&&x<=10) { SetPos(numberchooce-1,0); color(1); cout<<x; Color(0); } if (know(VK_RBUTTON)&&x>=0&&x<=10) { WaitForKeyRelease(VK_RBUTTON); break; } Sleep(20); } if(numberchooce==10) { dout("trader oracle(t/o)"); char npc; while(114514) { if (know('T')) { npc='t'; break; } if (know('O')) { npc='o'; break; } Sleep(20); } if(npc=='t') { dout("Trade petal or buy petal?(t/b)\n"); char ccf; while(114514) { if (know('T')) { ccf='t'; break; } if (know('B')) { ccf='b'; break; } Sleep(20); } if(ccf=='t') { for(int i=1;i<=petalnumber;i++) if(cancraft[i]) { cout<<i<<":"<<""; for(int j=1;j<=8;j++) { color(j); cout<<petal[i].name<<"*"<<craft[j][i]<<"\t"; color(craft[j][i]>0?1:5); cout<<"trade\t"; Color(0); } cout<<"\n"; } dout("Trade what?(Level and petal)\n"); int la=stoi(ReadNumberWithVirtualKey()); int pa=stoi(ReadNumberWithVirtualKey()); dout("how many?"); int nn=stoi(ReadNumberWithVirtualKey()); if(craft[la][pa]<nn) { dout("Not enough petals\n"); Sleep(1000); goto sb; } while(nn--) { int tc=trade[la]*4/5; tc=rand()%tc+1; tc=trade[la]-tc; cout<<"Trade "<<tc<<" coins!\n"; craft[la][pa]--; coin+=tc; } Sleep(2000); goto sb; } else { cout<<"Spend coins to buy a petal(rand)\n"; for(int i=1;i<=8;i++) { color(i); cout<<superm(i)<<" need "<<trade[i]<<"\n"; Color(0); } int ll=stoi(ReadNumberWithVirtualKey()); if(coin<trade[ll]) { cout<<"Not enough coin!"; Sleep(2000); goto sb; } int pt=rand()%petalnumber+1; cout<<"You buy a "; color(ll); cout<<petal[pt].name; Color(0); cout<<"!\n"; coin-=trade[ll]; craft[ll][pt]++; cancraft[pt]=true; Sleep(2000); goto sb; } } if(npc=='o') { cout<<"Spend petals to craft(100%) petals\n"; for(int i=1;i<8;i++) { color(i); cout<<superm(i)<<" need "<<o[i]<<"\n"; Color(0); } for(int i=1;i<=petalnumber;i++) if(cancraft[i]) { cout<<i<<":"; for(int j=1;j<=7;j++) { color(j); cout<<petal[i].name<<"*"<<craft[j][i]<<"\t"; color(craft[j][i]>=5?1:5); cout<<"Craft\t"; Color(0); } cout<<"\n"; } dout("Level and petal:\n"); int la=stoi(ReadNumberWithVirtualKey()); int pa=stoi(ReadNumberWithVirtualKey()); if(craft[la][pa]<o[la]) { dout("Not enough petals!"); Sleep(2000); goto sb; } dout("you craft a"); color(la+1); cout<<petal[pa].name; Color(0); cout<<"!\n"; craft[la][pa]-=o[la]; Sleep(2000); goto sb; } } if(numberchooce==8) { system("cls"); draw(); if(playername=="") { dout("It`s seems you first time play the flower...\nNow build a flower.\nName?\n"); string input; while (114514) { for (char c='A';c<='Z';c++) if (IsKeyPressed(c)) { char cc=c; if(!IsKeyPressed(VK_SHIFT)) cc+='a'-'A'; input+=cc; cout<<cc; WaitForKeyRelease(c); break; } if (IsKeyPressed(VK_BACK)&&!input.empty()) { input.pop_back(); std::cout << "\b \b"; WaitForKeyRelease(VK_BACK); } if (IsKeyPressed(VK_RETURN)) { WaitForKeyRelease(VK_RETURN); cout<<endl; if(!input.empty()) break; } if (IsKeyPressed(VK_SPACE)) { WaitForKeyRelease(VK_SPACE); cout<<" "; if(!input.empty()) break; } Sleep(20); } playername=input; } dout("Saving..."); Sleep(1000); dout("Save successful!"); string savef="D:\\Maxisgood"+playername+".txt"; ofstream file(savef); if(file.is_open()) { file << coin << " "; file << level << " "; file << xp << " "; file << loadout << " "; for(int i=1;i<=skillnum;i++) file << need[i].ntp << " " << need[i].l << " "; file << PET << " "; file << tp << " "; file << playerhealth << " "; file << (db ? 1 : 0) << " "; for(int i=1;i<=9;i++) for(int j=1;j<=petalnumber;j++) file << craft[i][j] << " "; for(int i=1;i<=petalnumber;i++) file << (cancraft[i] ? 1 : 0) << " "; for(int i=1;i<=10;i++) file << lo[i].LEV << " " << lo[i].NUM << " "; file.close(); } Sleep(1000); goto sb; } if(numberchooce==9) { system("cls"); draw(); dout("Name?(You must have played the flower on this computer)\n"); string input; while (114514) { for (char c='0';c<='9';c++) if (IsKeyPressed(c)) { char cc=c; input+=cc; cout<<cc; WaitForKeyRelease(c); break; } for (char c='A';c<='Z';c++) if (IsKeyPressed(c)) { char cc=c; if(!IsKeyPressed(VK_SHIFT)) cc+='a'-'A'; input+=cc; cout<<cc; WaitForKeyRelease(c); break; } if (IsKeyPressed(VK_BACK)&&!input.empty()) { input.pop_back(); std::cout << "\b \b"; WaitForKeyRelease(VK_BACK); } if (IsKeyPressed(VK_RETURN)) { WaitForKeyRelease(VK_RETURN); cout<<endl; if(!input.empty()) break; } if (IsKeyPressed(VK_SPACE)) { WaitForKeyRelease(VK_SPACE); cout<<" "; if(!input.empty()) break; } Sleep(20); } playername=input; dout("Load game ..."); Sleep(2000); string savef="D:\\Maxisgood"+playername+".txt"; ifstream file(savef); if(!file.is_open()) { dout("Flower not found!"); Sleep(2000); goto sb; } file >> coin; file >> level; file >> xp; file >> loadout; for(int i=1;i<=skillnum;i++) { file >> need[i].ntp; file >> need[i].l; } file >> PET; file >> tp; file >> playerhealth; int db_int; file >> db_int; db = (db_int != 0); for(int i=1;i<=9;i++) for(int j=1;j<=petalnumber;j++) file >> craft[i][j]; for(int i=1;i<=petalnumber;i++) { int can_int; file >> can_int; cancraft[i] = (can_int != 0); } for(int i=1;i<=10;i++) { file >> lo[i].LEV; file >> lo[i].NUM; } file.close(); dout("Load successful!"); Sleep(1000); goto sb; } if(numberchooce==6) { while(true) { ssbb: cout<<"tp:"<<tp<<"\n"; for(int i=1;i<=skillnum;i++) { cout<<i<<"."<<need[i].name<<":Level "<<superm(need[i].l+1); if(need[i].l<need[i].MAX) cout<<" need "<<need[i].ntp<<" TP\n"; else cout<<"(MAX)\n"; } cout<<skillnum+1<<".exit"; int cho=stoi(ReadNumberWithVirtualKey()); if(cho>skillnum+1) { cout<<"Error!"; goto sb; } if(cho==skillnum+1) { Sleep(500); goto sb; } if(need[cho].ntp>tp) { cout<<"Not enough tp!\n"; Sleep(2000); goto ssbb; } if(need[cho].l>=need[cho].MAX) { cout<<"MAX\n"; Sleep(2000); goto ssbb; } tp-=need[cho].ntp; need[cho].l++; need[cho].ntp=rand()%2+1; if(need[cho].name=="Health") playerhealth+=playerhealth/5; if(need[cho].name=="Loadout") loadout++; if(need[cho].name=="Pet") PET++; if(need[cho].name=="Double") db=true; } } if(numberchooce==7) { for(int i=1;i<=petalnumber;i++) if(cancraft[i]) { cout<<i<<":"; for(int j=1;j<=7;j++) { color(j); cout<<petal[i].name<<"*"<<craft[j][i]<<"\t"; color(craft[j][i]>=5?1:5); cout<<"Craft\t"; Color(0); } cout<<"\n"; } int l=stoi(ReadNumberWithVirtualKey()),p=stoi(ReadNumberWithVirtualKey()); if(craft[l][p]<5) { dout("Not enough petals!"); Sleep(2000); goto sb; } dout("craft?(y/n)"); char charr; while(114514) { for (char c='a';c<='z';c++) if (IsKeyPressed(c)) { charr=c; cout<<c; WaitForKeyRelease(c); break; } Sleep(20); } if(charr=='y') { int l_=0; int l__=0; while(craft[l][p]>=5) { craft[l][p]-=5; if(miss(128/pow(2,l))) l_++; else { int rd=rand()%4+1; craft[l][p]+=rd; l__+=5-rd; } } craft[l+1][p]+=l_; cout<<"Craft "<<l_<<" "; color(l+1); cout<<superm(l+1)<<petal[p].name; Color(0); cout<<"!\n"; cout<<"Lose "<<l__<<" "; color(l); cout<<superm(l)<<petal[p].name; Color(0); cout<<"!\n"; Sleep(5000); } goto sb; } system("cls"); draw(); cout<<"1.C\n2.Un\n3.R\n4.E\n5.L\n6.M\n7.U\n"; last=1; int placenum; while(114514) { int x,y; getm(x,y); SetPos(last-1,0); if(last>0&&last<=7) cout<<last; placenum=x; last=placenum; if(x>0&&x<=7) { SetPos(placenum-1,0); color(1); cout<<x; Color(0); } if (know(VK_RBUTTON)&&x>=0&&x<=7) { WaitForKeyRelease(VK_RBUTTON); break; } Sleep(20); } int randls=placenum*5+level; int lssjs=rand()%randls+1; cout<<"runing..."; Sleep(placenum*500); if(lssjs<=placenum) { dout("you has defeated by "); int randlll=(placenum+rand()%3+1)-2; if(randlll<1) randlll=1; if(randlll>7) randlll=7; color(randlll); cout<<superm(randlll)<<" "<<mob[numberchooce][rand()%supernumber+1].name; Color(0); cout<<"!\n"; system("pause"); goto sb; } else while(true) { system("cls"); draw(); int nowhealth; int totaldamage=0; int mobrand=rand()%supernumber+1; int moblevel=rand()%3+1; moblevel-=2; moblevel+=placenum; if(moblevel<=0) moblevel=1; if(moblevel>=8) moblevel=7; int dsuper=0; if(supermap==numberchooce&&placenum==superzone) { mobrand=supermob; nowhealth=mobdata(8,mob[numberchooce][mobrand].health); moblevel=8; insuper=true; } else nowhealth=mobdata(moblevel,mob[numberchooce][mobrand].health); int rnowhealth=nowhealth; if(!(supermap==numberchooce&&placenum==superzone)&&moblevel==8) moblevel=7; dout("You encountered a "); int PD[10005],PS[10005],PN=0; color(moblevel); cout<<superm(moblevel)<<" "<<mob[numberchooce][mobrand].name; Color(0); cout<<"!\n"; Sleep(1000); int petnum=0; PT pet[10005]; int tri[10]; int yourhealth=playerhealth; for(int i=1;i<=loadout;i++) { if(petal[lo[i].NUM].name=="lentil") rnowhealth-=petaldata(lo[i].LEV,petal[lo[i].NUM].damage); if(petal[lo[i].NUM].name=="third eye") { int damage=0; for(int i=1;i<=loadout;i++) { if(petal[lo[i].NUM].name=="triangle") tri[lo[i].LEV]++; if(petal[lo[i].NUM].name=="dice") if((rand()%25+1)==1) damage+=petaldata(lo[i].LEV,petal[lo[i].NUM].damage)*34; if(petal[lo[i].NUM].name=="claw"&&rnowhealth>=nowhealth*3/4) damage+=petaldata(lo[i].LEV,9); else { int ad=petaldata(lo[i].LEV,petal[lo[i].NUM].damage)*((db&&petal[lo[i].NUM].number>=2)?petal[lo[i].NUM].number+1:petal[lo[i].NUM].number); damage+=(ad<mob[numberchooce][mobrand].A)?0:ad-mob[numberchooce][mobrand].A; } for(int j=1;j<=9;j++) damage+=tri[j]*(tri[j]-1)*petaldata(j,2); rnowhealth-=damage; } } } SPG spg[10005]; int dnum=0; for(int round=0;rnowhealth>0;round++) { int waittime=0; int ms=0; if(insuper) rnowhealth=superhealth; Sleep(1000); system("cls"); int dself=0; draw(); color(8); for(int i=1;i<=double(rnowhealth)/double(nowhealth)*25;i++) cout<<"#"; color(9); for(int i=1;i<=25-double(rnowhealth)/double(nowhealth)*25;i++) cout<<"#"; Color(0); cout<<" "; color(8); for(int i=1;i<=double(yourhealth)/double(playerhealth)*25;i++) cout<<"#"; color(9); for(int i=1;i<=25-double(yourhealth)/double(playerhealth)*25;i++) cout<<"#"; Color(0); cout<<"\n"; color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<" health:"<<rnowhealth<<"/"<<nowhealth<<",your health:"<<yourhealth<<"/"<<playerhealth<<"\n"; int hhh=2; for(int i=1;i<=petnum;i++) if(pet[i].rh>0) { cout<<"Pet "<<i<<"health:"<<pet[i].rh<<"/"<<pet[i].health<<"\n"; hhh++; } sssbbb: cout<<"1.open petals\n2.run\n3.leave\n4.bag\n5.close petals\n"; int lschnum; last=1; while(114514) { int x,y; getm(x,y); x-=hhh; SetPos(last-1+hhh,0); if(last>0&&last<=5) cout<<last; lschnum=x; last=lschnum; if(x>0&&x<=5) { SetPos(lschnum-1+hhh,0); color(1); cout<<x; Color(0); } if (know(VK_RBUTTON)&&x>0&&x<6) break; Sleep(100); } if(lschnum>5) dout("Error!"); if(lschnum==1) { for(int i=1;i<=9;i++) tri[i]=0; int damage=0; for(int i=1;i<=loadout;i++) { if(petal[lo[i].NUM].name=="lentil") ms+=7; if(petal[lo[i].NUM].name=="third eye") ms+=15; if(petal[lo[i].NUM].name=="plank") ms+=30; if(petal[lo[i].NUM].name=="web") ms+=rand()%50+1; if(petal[lo[i].NUM].name=="faster") waittime+=lo[i].LEV; if(petal[lo[i].NUM].name=="sponge") ts=true; if(round%petal[lo[i].NUM].relod==0) { if(petal[lo[i].NUM].name=="triangle") tri[lo[i].LEV]++; if(petal[lo[i].NUM].name=="dice") if((rand()%25+1)==1) damage+=petaldata(lo[i].LEV,petal[lo[i].NUM].damage)*34; if(petal[lo[i].NUM].name=="claw"&&rnowhealth>=nowhealth*3/4) damage+=petaldata(lo[i].LEV,9); else { int ad=petaldata(lo[i].LEV,petal[lo[i].NUM].damage)*((db&&petal[lo[i].NUM].number>=2)?petal[lo[i].NUM].number+1:petal[lo[i].NUM].number); damage+=(ad<mob[numberchooce][mobrand].A)?0:ad-mob[numberchooce][mobrand].A; } if(petal[lo[i].NUM].poison>0) { PD[++PN]=petaldata(lo[i].LEV,petal[lo[i].NUM].poison); PS[PN]=petal[lo[i].NUM].psecond; } if(petal[lo[i].NUM].antdamage!=0) { int lsnum=((db&&petal[lo[i].NUM].number>1)?petal[lo[i].NUM].number+1:petal[lo[i].NUM].number); while(lsnum>0) { pet[++petnum].health=mobdata(lo[i].LEV-1,petal[lo[i].NUM].anthealth)*(1+PET*0.07); pet[petnum].damage=mobdata(lo[i].LEV-1,petal[lo[i].NUM].antdamage); pet[petnum].rh=pet[petnum].health; pet[petnum].sm=petal[lo[i].NUM].ant; pet[petnum].mp=(petal[lo[i].NUM].name=="ant egg"?1:3); pet[petnum].lv=lo[i].LEV==1?1:(lo[i].LEV-1); lsnum--; } } } if(petal[lo[i].NUM].name=="battery"||petal[lo[i].NUM].name=="lightning"); { if(petal[lo[i].NUM].name=="battery"||petal[lo[i].NUM].name=="lightning") dself+=petaldata(lo[i].LEV,2); } } if(petnum!=0) { for(int i=1;i<=petnum;i++) { if(pet[i].rh>0) { color(pet[i].lv); cout<<mob[pet[i].mp][pet[i].sm].name; Color(0); cout<<" cause "<<pet[i].damage<<" damage!"; dsuper+=pet[i].damage; rnowhealth-=pet[i].damage; if(supermap==numberchooce&&placenum==superzone) superhealth-=pet[i].damage; color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<" cause "<<mobdata(moblevel,mob[numberchooce][mobrand].damage)<<" damage!"; pet[i].rh-=mobdata(moblevel,mob[numberchooce][mobrand].damage); if(pet[i].rh<=0) { color(pet[i].lv); cout<<mob[pet[i].mp][pet[i].sm].name; Color(0); cout<<" is dead!"; } cout<<"\n"; } } } for(int i=1;i<=PN;i++) if(PS[i]>0) { cout<<"Cause "<<PD[i]<<"poison!\n"; PS[i]--; dsuper+=PD[i]; rnowhealth-=PD[i]; if(supermap==numberchooce&&placenum==superzone) superhealth-=PD[i]; } for(int j=1;j<=9;j++) damage+=tri[j]*(tri[j]-1)*petaldata(j,2); if(mob[numberchooce][mobrand].name=="soldier termite"||mob[numberchooce][mobrand].name=="overmind termite") damage/=rand()%10+1; cout<<"Cause "<<damage<<" damage!\n"; if(dself>0)cout<<"Cause "<<dself<<" lightning!\n"; damage+=dself; Sleep(1000-waittime*100<0?0:1000-waittime*100); dsuper+=damage; rnowhealth-=damage; if(supermap==numberchooce&&placenum==superzone) superhealth-=damage; if(rnowhealth<=0) { if(!(supermap==numberchooce&&placenum==superzone)) cout<<mob[numberchooce][mobrand].name<<" has defeat by you!\n"; if(!insuper||dsuper>=nowhealth/100) { insuper=false; xp+=mobdata(moblevel,mob[numberchooce][mobrand].gave); int lll=mob[numberchooce][mobrand].loot.size(); if(lll!=0) { int llll=rand()%lll+1; llll--; int levelrand=rand()%100+1; if(levelrand<=loots[moblevel][0]) levelrand=moblevel-2; else if(levelrand<=loots[moblevel][1]+loots[moblevel][0]) levelrand=moblevel-1; else levelrand=moblevel; if(levelrand<=0) levelrand=1; if(levelrand>=8) levelrand=7; dout("Loot "); color(levelrand); cout<<superm(levelrand)<<" "<<petal[mob[numberchooce][mobrand].loot[llll]].name; Color(0); cout<<"!\n"; craft[levelrand][mob[numberchooce][mobrand].loot[llll]]++; cancraft[mob[numberchooce][mobrand].loot[llll]]=true; } Color(5); while(levelneedxp(level)<=xp) { xp-=levelneedxp(level); playerhealth*=1.01; level++; tp++; cout<<"Has risen to level "<<level<<"!\n"; } Color(0); Sleep(1000-waittime*100<0?0:1000-waittime*100); // FILE* florfile=freopen("florrd.txt","w",stdout); // cout<<damagec<<" "<<lowdamage<<" "<<xp<<" "<<level; // fclose(florfile); // freopen("CON","w",stdout); } break; } if(!miss(mob[numberchooce][mobrand].rnd)) { if(moblevel==8) { int superattack=rand()%25+1; if(superattack==1) { cout<<"You have been super locked,cause "<<mobdata(8,mob[numberchooce][mobrand].damage)<<" damade!\n"; yourhealth-=mobdata(8,mob[numberchooce][mobrand].damage); } else cout<<randname()<<" have been super locked\n"; } else { color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<"is attacking you!Cause "<<mobdata(moblevel,mob[numberchooce][mobrand].damage)<<" damage!\n"; Sleep(1000-waittime*100<0?0:1000-waittime*100); if(ts) { spg[++dnum].T=20; spg[dnum].D=mobdata(moblevel,mob[numberchooce][mobrand].damage)/20; } else yourhealth-=mobdata(moblevel,mob[numberchooce][mobrand].damage); for(int i=1;i<=dnum;i++) if(spg[i].T!=0) { yourhealth-=spg[i].D; spg[i].T--; } } if(yourhealth<=0) { insuper=false; cout<<"You has defeat by "; color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<"!\n"; Sleep(1000-waittime*100<0?0:1000-waittime*100); goto sb; } if(dself!=0) { cout<<"Lightning "<<dself<<" damage!\n"; dsuper+=dself; rnowhealth-=dself; superhealth-=dself; } } int HEAL=0; int SHELL=0; for(int i=1;i<=loadout;i++) if(round%petal[lo[i].NUM].relod==0) { if(petal[lo[i].NUM].name=="shell")SHELL+=petaldata(lo[i].LEV,1); else if(petal[lo[i].NUM].name!="yucca")HEAL+=petaldata(lo[i].LEV,petal[lo[i].NUM].heal); } if(HEAL!=0)cout<<"Heal "<<HEAL<<"\n"; if(SHELL!=0)cout<<"Shell "<<SHELL<<"\n"; yourhealth+=HEAL; yourhealth=min(playerhealth,yourhealth); yourhealth+=SHELL; Sleep(1000-waittime*100<0?0:1000-waittime*100); } if(lschnum==5) { for(int i=1;i<=PN;i++) if(PS[i]>0) { cout<<"Cause "<<PD[i]<<"poison!\n"; PS[i]--; dsuper+=PD[i]; rnowhealth-=PD[i]; if(supermap==numberchooce&&placenum==superzone) superhealth-=PD[i]; } if(petnum!=0) { for(int i=1;i<=petnum;i++) { if(pet[i].rh>0) { color(pet[i].lv); cout<<mob[pet[i].mp][pet[i].sm].name; Color(0); cout<<" cause "<<pet[i].damage<<" damage!"; dsuper+=pet[i].damage; rnowhealth-=pet[i].damage; if(supermap==numberchooce&&placenum==superzone) superhealth-=pet[i].damage; color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<" cause "<<mobdata(moblevel,mob[numberchooce][mobrand].damage)<<" damage!"; pet[i].rh-=mobdata(moblevel,mob[numberchooce][mobrand].damage); if(pet[i].rh<=0) { color(pet[i].lv); cout<<mob[pet[i].mp][pet[i].sm].name; Color(0); cout<<" is dead!"; } cout<<"\n"; } } } if(!miss(mob[numberchooce][mobrand].rnd*1.3)) { if(moblevel==8) { int superattack=rand()%25+1; if(superattack==1) { cout<<"You have been super locked,cause "<<mobdata(8,mob[numberchooce][mobrand].damage)<<" damade!\n"; yourhealth-=mobdata(8,mob[numberchooce][mobrand].damage); } else cout<<randname()<<" have been super locked\n"; } else { color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<"is attacking you!Cause "<<mobdata(moblevel,mob[numberchooce][mobrand].damage)<<" damage!\n"; Sleep(1000); yourhealth-=mobdata(moblevel,mob[numberchooce][mobrand].damage); } if(yourhealth<=0) { insuper=false; cout<<"You has defeat by "; color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<"!\n"; Sleep(1000); goto sb; } } int HEAL=0; int SHELL=0; for(int i=1;i<=loadout;i++) if(round%petal[lo[i].NUM].relod==0) { if(petal[lo[i].NUM].name=="shell")SHELL+=petaldata(lo[i].LEV,1); else HEAL+=petaldata(lo[i].LEV,petal[lo[i].NUM].heal); } if(HEAL!=0)cout<<"Heal "<<HEAL<<"\n"; if(SHELL!=0)cout<<"Shell "<<SHELL<<"\n"; yourhealth+=HEAL; yourhealth=min(playerhealth,yourhealth); yourhealth+=SHELL; Sleep(1000); } if(lschnum==2) { int randrun=rand()%5+1; if(randrun==1) { dout("You has defeat by "); color(moblevel); cout<<mob[numberchooce][mobrand].name; Color(0); cout<<"!\n"; Sleep(2000); goto sb; } break; } if(lschnum==3) goto sb; if(lschnum==4) { cout<<"\n\n\n\n\n\n\nbag:\n"; for(int i=1;i<=petalnumber;i++) { if(cancraft[i]) { cout<<i<<":"; for(int j=1;j<=8;j++) { color(j); cout<<" "<<petal[i].name<<"*"<<craft[j][i]; Color(0); } cout<<"\n"; } } for(int i=1;i<=loadout;i++) { color(lo[i].LEV); cout<<"|"<<superm(lo[i].LEV)<<" "<<petal[lo[i].NUM].name<<"|"; Color(0); } dout("\nChose Level? ? and B swap,or press 0 to exit"); int la=stoi(ReadNumberWithVirtualKey()),pa,B; if(la==0) goto sssbbb; pa=stoi(ReadNumberWithVirtualKey()); B=stoi(ReadNumberWithVirtualKey()); if(la>8||pa>petalnumber||B>loadout) { cout<<"Error!"; goto sb; } if(craft[la][pa]<=0) { cout<<"Error!"; goto sb; } if(petal[lo[B].NUM].name=="sponge") ts=false; if(petal[pa].name=="sponge") ts=true; if(petal[lo[B].NUM].name=="cactu") playerhealth-=mobdata(lo[B].LEV,3); if(petal[pa].name=="cactu") playerhealth+=mobdata(la,3); craft[la][pa]--; craft[lo[B].LEV][lo[B].NUM]++; lo[B].LEV=la; lo[B].NUM=pa; } } } return; } void MAIN() { srand(time(0)); srand(time(0)); supernumber=8; petalnumber=22; skillnum=4; loadout=5; need[1].name="Health"; need[2].name="Loadout"; need[3].name="Pet"; need[4].name="Double"; need[1].MAX=8; need[2].MAX=5; need[3].MAX=8; need[4].MAX=1; need[1].ntp=5; need[2].ntp=6; need[3].ntp=4; need[4].ntp=10; petal[1].ant=0; petal[1].antdamage=0; petal[1].anthealth=0; petal[1].damage=4; petal[1].heal=0; petal[1].name="glass"; petal[1].number=1; petal[1].poison=0; petal[1].psecond=0; petal[1].relod=1; petal[2].ant=0; petal[2].antdamage=0; petal[2].anthealth=0; petal[2].damage=1; petal[2].heal=0; petal[2].name="basic"; petal[2].number=1; petal[2].poison=0; petal[2].psecond=0; petal[2].relod=1; petal[3].ant=0; petal[3].antdamage=0; petal[3].anthealth=0; petal[3].damage=1; petal[3].heal=2; petal[3].name="rose"; petal[3].number=1; petal[3].poison=0; petal[3].psecond=0; petal[3].relod=2; petal[4].ant=0; petal[4].antdamage=0; petal[4].anthealth=0; petal[4].damage=15; petal[4].heal=0; petal[4].name="stinger"; petal[4].number=1; petal[4].poison=0; petal[4].psecond=0; petal[4].relod=10; petal[5].ant=0; petal[5].antdamage=0; petal[5].anthealth=0; petal[5].damage=5; petal[5].heal=0; petal[5].name="missle"; petal[5].number=1; petal[5].poison=0; petal[5].psecond=0; petal[5].relod=2; petal[6].ant=0; petal[6].antdamage=0; petal[6].anthealth=0; petal[6].damage=2; petal[6].heal=0; petal[6].name="orange"; petal[6].number=3; petal[6].poison=0; petal[6].psecond=0; petal[6].relod=2; petal[7].ant=0; petal[7].antdamage=0; petal[7].anthealth=0; petal[7].damage=0; petal[7].heal=0; petal[7].name="lightning"; petal[7].number=1; petal[7].poison=0; petal[7].psecond=0; petal[7].relod=1; petal[8].ant=0; petal[8].antdamage=0; petal[8].anthealth=0; petal[8].damage=3; petal[8].heal=2; petal[8].name="fang"; petal[8].number=1; petal[8].poison=0; petal[8].psecond=0; petal[8].relod=2; petal[9].ant=0; petal[9].antdamage=0; petal[9].anthealth=0; petal[9].damage=2; petal[9].heal=0; petal[9].name="claw"; petal[9].number=0; petal[9].poison=0; petal[9].psecond=0; petal[9].relod=1; petal[10].ant=0; petal[10].antdamage=0; petal[10].anthealth=0; petal[10].damage=1; petal[10].heal=0; petal[10].name="iris"; petal[10].number=1; petal[10].poison=2; petal[10].psecond=3; petal[10].relod=3; petal[11].ant=0; petal[11].antdamage=0; petal[11].anthealth=0; petal[11].damage=0; petal[11].heal=0; petal[11].name="pincer"; petal[11].number=1; petal[11].poison=5; petal[11].psecond=1; petal[11].relod=3; petal[12].ant=3; petal[12].antdamage=7; petal[12].anthealth=40; petal[12].damage=0; petal[12].heal=0; petal[12].name="bettle egg"; petal[12].number=1; petal[12].poison=0; petal[12].psecond=0; petal[12].relod=15; petal[13].ant=0; petal[13].antdamage=0; petal[13].anthealth=0; petal[13].damage=1; petal[13].heal=0; petal[13].name="cactu"; petal[13].number=1; petal[13].poison=0; petal[13].psecond=0; petal[13].relod=2; petal[14].ant=0; petal[14].antdamage=0; petal[14].anthealth=0; petal[14].damage=2; petal[14].heal=1; petal[14].name="leaf"; petal[14].number=1; petal[14].poison=0; petal[14].psecond=0; petal[14].relod=1; petal[15].ant=0; petal[15].antdamage=0; petal[15].anthealth=0; petal[15].damage=1; petal[15].heal=0; petal[15].name="battery"; petal[15].number=1; petal[15].poison=0; petal[15].psecond=0; petal[15].relod=3; petal[16].ant=0; petal[16].antdamage=0; petal[16].anthealth=0; petal[16].damage=1; petal[16].heal=0; petal[16].name="dice"; petal[16].number=1; petal[16].poison=0; petal[16].psecond=0; petal[16].relod=1; petal[17].ant=0; petal[17].antdamage=0; petal[17].anthealth=0; petal[17].damage=4; petal[17].heal=0; petal[17].name="bone"; petal[17].number=1; petal[17].poison=0; petal[17].psecond=0; petal[17].relod=2; petal[18].ant=0; petal[18].antdamage=0; petal[18].anthealth=0; petal[18].damage=1; petal[18].heal=2; petal[18].name="star fish"; petal[18].number=1; petal[18].poison=0; petal[18].psecond=0; petal[18].relod=1; petal[19].ant=3; petal[19].antdamage=5; petal[19].anthealth=30; petal[19].damage=0; petal[19].heal=0; petal[19].name="ant egg"; petal[19].number=4; petal[19].poison=0; petal[19].psecond=0; petal[19].relod=15; petal[20].ant=0; petal[20].antdamage=0; petal[20].anthealth=0; petal[20].damage=1; petal[20].heal=3; petal[20].name="yucca"; petal[20].number=1; petal[20].poison=0; petal[20].psecond=0; petal[20].relod=1; petal[21].ant=0; petal[21].antdamage=0; petal[21].anthealth=0; petal[21].damage=2; petal[21].heal=0; petal[21].name="sand"; petal[21].number=4; petal[21].poison=0; petal[21].psecond=0; petal[21].relod=2; petal[22].ant=0; petal[22].antdamage=0; petal[22].anthealth=0; petal[22].damage=1; petal[22].heal=0; petal[22].name="light"; petal[22].number=5; petal[22].poison=0; petal[22].psecond=0; petal[22].relod=1; petal[23].ant=6; petal[23].antdamage=7; petal[23].anthealth=15; petal[23].damage=0; petal[23].heal=0; petal[23].name="stick"; petal[23].number=1; petal[23].poison=0; petal[23].psecond=0; petal[23].relod=2; petal[24].ant=0; petal[24].antdamage=0; petal[24].anthealth=0; petal[24].damage=2; petal[24].heal=0; petal[24].name="triangle"; petal[24].number=1; petal[24].poison=0; petal[24].psecond=0; petal[24].relod=2; petal[25].ant=0; petal[25].antdamage=0; petal[25].anthealth=0; petal[25].damage=3; petal[25].heal=0; petal[25].name="rock"; petal[25].number=1; petal[25].poison=0; petal[25].psecond=0; petal[25].relod=1; petal[26].ant=0; petal[26].antdamage=0; petal[26].anthealth=0; petal[26].damage=1; petal[26].heal=1; petal[26].name="shell"; petal[26].number=1; petal[26].poison=0; petal[26].psecond=0; petal[26].relod=2; petal[27].ant=0; petal[27].antdamage=0; petal[27].anthealth=0; petal[27].damage=0; petal[27].heal=0; petal[27].name="sponge"; petal[27].number=1; petal[27].poison=0; petal[27].psecond=0; petal[27].relod=1; petal[28].ant=0; petal[28].antdamage=0; petal[28].anthealth=0; petal[28].damage=0; petal[28].heal=0; petal[28].name="third eye"; petal[28].number=1; petal[28].poison=0; petal[28].psecond=0; petal[28].relod=1; petal[29].ant=0; petal[29].antdamage=0; petal[29].anthealth=0; petal[29].damage=2; petal[29].heal=0; petal[29].name="faster"; petal[29].number=1; petal[29].poison=0; petal[29].psecond=0; petal[29].relod=1; petal[30].ant=0; petal[30].antdamage=0; petal[30].anthealth=0; petal[30].damage=2; petal[30].heal=0; petal[30].name="web"; petal[30].number=1; petal[30].poison=0; petal[30].psecond=0; petal[30].relod=1; petal[31].ant=0; petal[31].antdamage=0; petal[31].anthealth=0; petal[31].damage=2; petal[31].heal=0; petal[31].name="plank"; petal[31].number=1; petal[31].poison=0; petal[31].psecond=0; petal[31].relod=1; petal[32].ant=0; petal[32].antdamage=0; petal[32].anthealth=0; petal[32].damage=3; petal[32].heal=0; petal[32].name="lentil"; petal[32].number=1; petal[32].poison=0; petal[32].psecond=0; petal[32].relod=1; mob[1][1].damage=5; mob[1][1].health=15; mob[1][1].name="lady bug"; mob[1][1].loot.push_back(3); mob[1][1].gave=4; mob[1][1].rnd=55; mob[1][1].A=2; mob[1][2].damage=10; mob[1][2].health=20; mob[1][2].name="bee"; mob[1][2].gave=5; mob[1][2].loot.push_back(4); mob[1][2].rnd=21; mob[1][2].A=1; mob[1][3].damage=5; mob[1][3].health=30; mob[1][3].name="soldier ant"; mob[1][3].gave=3; mob[1][3].loot.push_back(1); mob[1][3].rnd=35; mob[1][3].A=0; mob[1][4].damage=4; mob[1][4].health=35; mob[1][4].name="hornet"; mob[1][4].gave=4; mob[1][4].loot.push_back(5); mob[1][4].loot.push_back(6); mob[1][4].rnd=74; mob[1][4].A=0; mob[1][5].damage=4; mob[1][5].health=35; mob[1][5].name="queen ant"; mob[1][5].gave=4; mob[1][5].loot.push_back(19); mob[1][5].rnd=16; mob[1][5].A=1; mob[1][6].damage=3; mob[1][6].health=10; mob[1][6].name="baby ant"; mob[1][6].gave=8; mob[1][6].loot.push_back(22); mob[1][6].rnd=71; mob[1][6].A=0; mob[1][7].damage=3; mob[1][7].health=20; mob[1][7].name="rock"; mob[1][7].gave=8; mob[1][7].loot.push_back(25); mob[1][7].rnd=100; mob[1][7].A=2; mob[1][8].damage=4; mob[1][8].health=15; mob[1][8].name="spider"; mob[1][8].gave=4; mob[1][8].loot.push_back(29); mob[1][8].loot.push_back(30); mob[1][8].rnd=15; mob[1][8].A=1; mob[2][1].damage=3; mob[2][1].health=40; mob[2][1].name="jelly fish"; mob[2][1].gave=5; mob[2][1].loot.push_back(7); mob[2][1].rnd=1; mob[2][1].A=1; mob[2][2].damage=4; mob[2][2].health=20; mob[2][2].name="leech"; mob[2][2].gave=3; mob[2][2].loot.push_back(8); mob[2][2].rnd=0; mob[2][2].A=0; mob[2][3].damage=6; mob[2][3].health=30; mob[2][3].name="crab"; mob[2][3].gave=5; mob[2][3].loot.push_back(9); mob[2][3].loot.push_back(21); mob[2][3].rnd=15; mob[2][3].A=1; mob[2][4].damage=3; mob[2][4].health=10; mob[2][4].name="bubble"; mob[2][4].gave=10; mob[2][4].rnd=100; mob[2][4].A=5; mob[2][5].damage=3; mob[2][5].health=20; mob[2][5].name="star fish"; mob[2][5].gave=5; mob[2][5].loot.push_back(18); mob[2][5].loot.push_back(21); mob[2][5].rnd=48; mob[2][5].A=1; mob[2][6].damage=3; mob[2][6].health=20; mob[2][6].name="spong"; mob[2][6].loot.push_back(27); mob[2][6].gave=4; mob[2][6].rnd=100; mob[2][7].damage=5; mob[2][7].health=40; mob[2][7].name="shell"; mob[2][7].gave=8; mob[2][7].loot.push_back(26); mob[2][7].rnd=65; mob[2][8].damage=5; mob[2][8].health=30; mob[2][8].name="soldier ant"; mob[2][8].gave=8; mob[2][8].rnd=15; mob[3][1].damage=10; mob[3][1].health=20; mob[3][1].name="scorpion"; mob[3][1].gave=6; mob[3][1].loot.push_back(10); mob[3][1].loot.push_back(11); mob[3][1].rnd=25; mob[3][1].A=1; mob[3][2].damage=3; mob[3][2].health=15; mob[3][2].name="shiny lady bug"; mob[3][2].gave=7; mob[3][2].loot.push_back(3); mob[3][2].rnd=69; mob[3][3].damage=7; mob[3][3].health=40; mob[3][3].name="beetle"; mob[3][3].gave=4; mob[3][3].loot.push_back(12); mob[3][3].rnd=31; mob[3][3].A=2; mob[3][4].damage=1; mob[3][4].health=20; mob[3][4].name="cactu"; mob[3][4].gave=5; mob[3][4].loot.push_back(13); mob[3][4].rnd=100; mob[3][5].damage=6; mob[3][5].health=35; mob[3][5].name="soldier fire ant"; mob[3][5].gave=4; mob[3][5].loot.push_back(17); mob[3][5].loot.push_back(20); mob[3][5].rnd=20; mob[3][6].damage=7; mob[3][6].health=17; mob[3][6].name="sand storm"; mob[3][6].gave=4; mob[3][6].loot.push_back(23); mob[3][6].loot.push_back(1); mob[3][6].loot.push_back(21); mob[3][6].rnd=100; mob[3][7].damage=5; mob[3][7].health=10; mob[3][7].name="baby fire ant"; mob[3][7].gave=8; mob[3][7].loot.push_back(20); mob[3][7].loot.push_back(22); mob[3][7].rnd=70; mob[3][8].damage=2; mob[3][8].health=30; mob[3][8].name="bandage beetle"; mob[3][7].loot.push_back(32); mob[3][8].gave=1; mob[3][8].rnd=70; mob[4][1].damage=4; mob[4][1].health=25; mob[4][1].name="leaf bug"; mob[4][1].gave=4; mob[4][1].loot.push_back(14); mob[4][1].rnd=55; mob[4][1].A=1; mob[4][2].damage=2; mob[4][2].health=30; mob[4][2].name="mantis"; mob[4][2].gave=4; mob[4][2].rnd=14; mob[4][3].damage=6; mob[4][3].health=25; mob[4][3].name="fire fly"; mob[4][3].gave=5; mob[4][3].loot.push_back(15); mob[4][3].rnd=61; mob[4][4].damage=4; mob[4][4].health=25; mob[4][4].name="jungle wasp"; mob[4][4].gave=4; mob[4][4].loot.push_back(5); mob[4][4].rnd=49; mob[4][5].damage=1; mob[4][5].health=25; mob[4][5].name="bush"; mob[4][5].gave=5; mob[4][5].loot.push_back(14); mob[4][5].rnd=100; mob[4][6].damage=5; mob[4][6].health=20; mob[4][6].name="soldier termite"; mob[4][6].gave=5; mob[4][6].loot.push_back(24); mob[4][6].rnd=20; mob[4][7].damage=5; mob[4][7].health=50; mob[4][7].name="overmind termite"; mob[4][7].gave=8; mob[4][7].rnd=79; mob[4][7].A=2; mob[4][8].damage=4; mob[4][8].health=20; mob[4][8].name="worker termite"; mob[4][8].loot.push_back(31); mob[4][8].gave=5; mob[4][8].rnd=79; mob[4][8].A=1; mob[5][1].damage=6; mob[5][1].health=35; mob[5][1].name="hel wasp"; mob[5][1].gave=6; mob[5][1].loot.push_back(5); mob[5][1].loot.push_back(16); mob[5][1].rnd=13; mob[5][1].A=1; mob[5][2].damage=10; mob[5][2].health=25; mob[5][2].name="gambler"; mob[5][2].gave=8; mob[5][2].loot.push_back(16); mob[5][2].rnd=51; mob[5][2].A=1; mob[5][3].damage=9; mob[5][3].health=50; mob[5][3].name="hel beetle"; mob[5][3].gave=7; mob[5][3].loot.push_back(12); mob[5][3].loot.push_back(16); mob[5][3].rnd=17; mob[5][3].A=2; mob[5][4].damage=12; mob[5][4].health=15; mob[5][4].name="hel spider"; mob[5][4].loot.push_back(29); mob[5][4].loot.push_back(30); mob[5][4].gave=7; mob[5][4].rnd=10; mob[5][5].damage=5; mob[5][5].health=60; mob[5][5].name="hel centipede"; mob[5][5].gave=8; mob[5][5].loot.push_back(12); mob[5][5].rnd=50; mob[5][6].damage=10; mob[5][6].health=25; mob[5][6].name="gambler"; mob[5][6].gave=8; mob[5][6].loot.push_back(16); mob[5][6].rnd=51; mob[5][6].A=1; mob[5][7].damage=12; mob[5][7].health=15; mob[5][7].name="hel spider"; mob[5][7].gave=7; mob[5][7].rnd=10; mob[5][8].damage=15; mob[5][8].health=10; mob[5][8].name="player"; mob[5][8].loot.push_back(2); mob[5][8].gave=0; mob[5][8].rnd=20; lo[1].LEV=1; lo[1].NUM=2; lo[2].LEV=1; lo[2].NUM=2; lo[3].LEV=1; lo[3].NUM=2; lo[4].LEV=1; lo[4].NUM=2; lo[5].LEV=1; lo[5].NUM=3; lo[6].LEV=1; lo[6].NUM=2; lo[7].LEV=1; lo[7].NUM=2; lo[8].LEV=1; lo[8].NUM=2; lo[9].LEV=1; lo[9].NUM=2; lo[10].LEV=1; lo[10].NUM=2; dead(); } #undef int int main() { srand(time(0)); thread t(super); thread tt(MAIN); tt.join(); t.join(); return 0; }
Note.ms
/MAXyyds