Advertisement
Racknoss

Эпичный Генератор Вещей

Aug 5th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 3.83 KB | None | 0 0
  1. #include <iostream>
  2. #include <conio.h>
  3. #include <Windows.h>
  4. #include <ctime>
  5. #include <string>
  6.  
  7. using namespace ::std;
  8.  
  9. int main(void)
  10. {
  11.     HANDLE hConsole = GetStdHandle(STD_OUTPUT_HANDLE);
  12.     setlocale(LC_ALL, "Russian");
  13.     srand(time(NULL));
  14.     system("color F0");
  15.     cout << "Добро Пожаловать в ";
  16.     SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 5));
  17.     cout << "ЭПИЧНЫЙ";
  18.     SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 0));
  19.     cout << " генератор артефактов!!\n\n";
  20.     cout << "Хотите начать генерацию? (Нажмите 1) - ";
  21.     short int  vlast;
  22.     cin >> vlast;
  23.     if (vlast != 1){ cout << "Ну хорошо. Это твой путь.";  _getch(); return -1; }
  24.     SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 4));
  25.     cout << "Инициализирован процесс генерации!! ";
  26.     Sleep(2000);
  27.     system("cls");
  28.     char alfa(348), beta;
  29.     for (short int i(0); i < 60; i++)
  30.     {
  31.         system("cls");
  32.         for (short int h(0); h < 60; h++)
  33.         {
  34.             cout << alfa;
  35.         }
  36.         cout << endl;
  37.         SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 5));
  38.         for (short int h(0); h < i; h++)
  39.         {
  40.             cout << alfa;
  41.         }
  42.         cout << endl;
  43.         SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 0));
  44.         for (short int h(0); h < 60; h++)
  45.         {
  46.             cout << alfa;
  47.         }
  48.         cout << endl;
  49.         for (short int h(0); h < 360; h++)
  50.         {
  51.             beta = rand() % 1000;
  52.             cout << beta;
  53.         }
  54.         Sleep(1000);
  55.     }
  56.  
  57.  
  58.  
  59.    
  60.     system("cls");
  61.     cout << "Артефакт был перенесен в наш мир. И это::::: ";
  62.     short int id(0);
  63.     id = (rand() % 998) + 1;
  64.     if (((id % 1000) / 100) == 1) { cout << "Легендарн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
  65.     if (((id % 1000) / 100) == 2) { cout << "Эпичн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
  66.     if (((id % 1000) / 100) == 3) { cout << "Красив"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
  67.     if (((id % 1000) / 100) == 4) { cout << "Огненн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
  68.     if (((id % 1000) / 100) == 5) { cout << "Свят"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
  69.     if (((id % 1000) / 100) == 6) { cout << "Дьяволск"; if (id % 2 == 0) cout << "ий"; else cout << "ая"; }
  70.     if (((id % 1000) / 100) == 7) { cout << "Бесовск"; if (id % 2 == 0) cout << "ий"; else cout << "ая"; }
  71.     if (((id % 1000) / 100) == 8) { cout << "Последн"; if (id % 2 == 0) cout << "ий"; else cout << "яя"; }
  72.     if (((id % 1000) / 100) == 9) { cout << "Астральн"; if (id % 2 == 0) cout << "ый"; else cout << "ая"; }
  73.     if ((id % 10) == 1) cout << " Секира";
  74.     if ((id % 10) == 0) cout << " Топор";
  75.     if ((id % 10) == 3) cout << " Булава";
  76.     if ((id % 10) == 2) cout << " Меч";
  77.     if ((id % 10) == 5) cout << " Алебарда";
  78.     if ((id % 10) == 4) cout << " Щит";
  79.     if ((id % 10) == 7) cout << " Пищаль";
  80.     if ((id % 10) == 6) cout << " Арбалет";
  81.     if ((id % 10) == 9) cout << " Винтовка";
  82.     if ((id % 10) == 8) cout << " Нож";
  83.     if (((id % 100) / 10) == 1) cout << " Хранителя Времени";
  84.     if (((id % 100) / 10) == 2) cout << " Повелителя Огня";
  85.     if (((id % 100) / 10) == 3) cout << " Хаоса";
  86.     if (((id % 100) / 10) == 4) cout << " из ада";
  87.     if (((id % 100) / 10) == 5) cout << " Вождя";
  88.     if (((id % 100) / 10) == 6) cout << " Кукурузного Бога";
  89.     if (((id % 100) / 10) == 7) cout << " Потерянной Души";
  90.     if (((id % 100) / 10) == 8) cout << " Великого Флота";
  91.     if (((id % 100) / 10) == 9) cout << " Лживого Бога";
  92.     if (((id % 100) / 10) == 0) cout << " Крови";
  93.     SetConsoleTextAttribute(hConsole, (WORD)((15 << 4) | 4));
  94.     cout << "\n\n\n\n\n\n\n\t\t\t Made By Racknoss";
  95.     _getch();
  96.     return 0;
  97. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement