Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <conio.h>
- #include <Windows.h>
- #include <ctime>
- #include <string>
- using namespace ::std;
- int main(void)
- {
- HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
- setlocale(LC_ALL, "Russian");
- srand(time(NULL));
- system("color F0");
- cout << "Добро Пожаловать в ";
- SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 5));
- cout << "ЭПИЧНЫЙ";
- SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 0));
- cout << " генератор артефактов!!\n\n";
- cout << "Хотите начать генерацию? (Нажмите 1) - ";
- short int vlast;
- cin >> vlast;
- if (vlast != 1){ cout << "Ну хорошо. Это твой путь."; _getch(); return -1; }
- SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 4));
- cout << "Инициализирован процесс генерации!! ";
- Sleep(2000);
- system("cls");
- char alfa(348), beta;
- for (short int i(0); i < 60; i++)
- {
- system("cls");
- for (short int h(0); h < 60; h++)
- {
- cout << alfa;
- }
- cout << endl;
- SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 5));
- for (short int h(0); h < i; h++)
- {
- cout << alfa;
- }
- cout << endl;
- SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 0));
- for (short int h(0); h < 60; h++)
- {
- cout << alfa;
- }
- cout << endl;
- for (short int h(0); h < 360; h++)
- {
- beta = rand() % 1000;
- cout << beta;
- }
- Sleep(1000);
- }
- system("cls");
- cout << "Артефакт был перенесен в наш мир. И это::::: ";
- short int id(0);
- id = (rand() % 998) + 1;
- if (((id % 1000) / 100) == 1) { cout << "Легендарн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
- if (((id % 1000) / 100) == 2) { cout << "Эпичн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
- if (((id % 1000) / 100) == 3) { cout << "Красив"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
- if (((id % 1000) / 100) == 4) { cout << "Огненн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
- if (((id % 1000) / 100) == 5) { cout << "Свят"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
- if (((id % 1000) / 100) == 6) { cout << "Дьяволск"; if (id % 2 == 0) cout << "ий"; else cout << "ая"; }
- if (((id % 1000) / 100) == 7) { cout << "Бесовск"; if (id % 2 == 0) cout << "ий"; else cout << "ая"; }
- if (((id % 1000) / 100) == 8) { cout << "Последн"; if (id % 2 == 0) cout << "ий"; else cout << "яя"; }
- if (((id % 1000) / 100) == 9) { cout << "Астральн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
- if ((id % 10) == 1) cout << " Секира";
- if ((id % 10) == 0) cout << " Топор";
- if ((id % 10) == 3) cout << " Булава";
- if ((id % 10) == 2) cout << " Меч";
- if ((id % 10) == 5) cout << " Алебарда";
- if ((id % 10) == 4) cout << " Щит";
- if ((id % 10) == 7) cout << " Пищаль";
- if ((id % 10) == 6) cout << " Арбалет";
- if ((id % 10) == 9) cout << " Винтовка";
- if ((id % 10) == 8) cout << " Нож";
- if (((id % 100) / 10) == 1) cout << " Хранителя Времени";
- if (((id % 100) / 10) == 2) cout << " Повелителя Огня";
- if (((id % 100) / 10) == 3) cout << " Хаоса";
- if (((id % 100) / 10) == 4) cout << " из ада";
- if (((id % 100) / 10) == 5) cout << " Вождя";
- if (((id % 100) / 10) == 6) cout << " Кукурузного Бога";
- if (((id % 100) / 10) == 7) cout << " Потерянной Души";
- if (((id % 100) / 10) == 8) cout << " Великого Флота";
- if (((id % 100) / 10) == 9) cout << " Лживого Бога";
- if (((id % 100) / 10) == 0) cout << " Крови";
- SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 4));
- cout << "\n\n\n\n\n\n\n\t\t\t Made By Racknoss";
- _getch();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement