Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.IO;
- namespace teszt
- {
- class Program
- {
- static void Main(string[] args)
- {
- string answer;
- int ticker = 1;
- string Line = System.IO.File.ReadAllText(@"D:\Maffia Story\Helper\Liner.txt");
- string HelperIO = System.IO.File.ReadAllText(@"D:\Maffia Story\Commands\Help.txt");
- string Ans_A = "A.txt";
- string Ans_B = "B.txt";
- string Ans_C = "C.txt";
- string Ans_D = "D.txt";
- string Ans_M_A = "M_A.txt";
- string Ans_M_B = "M_B.txt";
- string Ans_M_C = "M_C.txt";
- string Ans_M_D = "M_D.txt";
- string Current_Location = "D:\\Maffia Story\\Bevezeto\\bevezeto.txt";
- string Current_M_Location = "D:\\Maffia Story\\Bevezeto\\M_bevezeto.txt";
- bool end = false;
- bool bug = false;
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("A Játékot kitalálta, megírta: Kapytany vagy FSOCIETY kinek hogy tetszik :) (EZ BIZTOS ÁTLESZ ÍRVA!!)");
- Console.ForegroundColor = ConsoleColor.White;
- string CDKEYS = "asd";
- System.Console.Write("Add meg a CD kulcsot: ");
- string CDkey = null;
- while (true)
- {
- var key = System.Console.ReadKey(true);
- if (key.Key == ConsoleKey.Enter)
- break;
- CDkey += key.KeyChar;
- }
- if (CDkey == CDKEYS)
- {
- Console.WriteLine();
- Console.WriteLine("Felhasználásra került a CD kulcsot. Jó játékot kívánok! [NYOMD MEG AZ ENTERT!] ");
- Console.ReadLine();
- Console.Clear();
- Console.ForegroundColor = ConsoleColor.Red;
- Console.WriteLine("A Játékot kitalálta, megírta: Kapytany vagy FSOCIETY kinek hogy tetszik :) (EZ BIZTOS ÁTLESZ ÍRVA!!)");
- Console.ForegroundColor = ConsoleColor.White;
- string bevezeto = System.IO.File.ReadAllText(@"D:\Maffia Story\Bevezeto\bevezeto.txt");
- for (int i = 0; i < bevezeto.Length; i++)
- {
- Console.Write(bevezeto[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string M_bevezeto = System.IO.File.ReadAllText(@"D:\Maffia Story\Bevezeto\M_bevezeto.txt");
- for (int i = 0; i < M_bevezeto.Length; i++)
- {
- Console.Write(M_bevezeto[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- while (end == false)
- {
- if (answer == "A" || answer == "a" && bug == false)
- {
- Line = Line + "\\A\\";
- string A = System.IO.File.ReadAllText(Line + Ans_A);
- for (int i = 0; i < A.Length; i++)
- {
- Console.Write(A[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string M_A = System.IO.File.ReadAllText(Line + Ans_M_A);
- for (int i = 0; i < M_A.Length; i++)
- {
- Console.Write(M_A[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- bug = false;
- if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c" && answer != "D" && answer != "d"
- && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && answer != "Help" && answer != "help" && bug == false) //BELETT ÍRVA A HELPES RÉSZ
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- string M_A_Bug = System.IO.File.ReadAllText(Line + Ans_M_A);
- for (int i = 0; i < M_A_Bug.Length; i++)
- {
- Console.Write(M_A_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C" || answer == "c"
- || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear" || answer == "Help" || answer == "help")
- {
- bug = false;
- Current_Location = Line + Ans_A;
- Current_M_Location = Line + Ans_M_A;
- }
- }
- }
- else if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C" || answer == "c"
- || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear" || answer == "Help" || answer == "help")
- {
- bug = false;
- Current_Location = Line + Ans_A;
- Current_M_Location = Line + Ans_M_A;
- }
- }
- else if (answer == "B" || answer == "b" && bug == false)
- {
- Line = Line + "\\B\\";
- string B = System.IO.File.ReadAllText(Line + Ans_B);
- for (int i = 0; i < B.Length; i++)
- {
- Console.Write(B[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string M_B = System.IO.File.ReadAllText(Line + Ans_M_B);
- for (int i = 0; i < M_B.Length; i++)
- {
- Console.Write(M_B[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer != "A" && answer != "a" && answer != "B" && answer != "b"
- && answer != "C" && answer != "c" && answer != "D" && answer != "d" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- string M_B_Bug = System.IO.File.ReadAllText(Line + Ans_M_B);
- for (int i = 0; i < M_B_Bug.Length; i++)
- {
- Console.Write(M_B_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Clear" || answer == "clear" || answer == "Commands" || answer == "commands")
- {
- bug = false;
- }
- }
- }
- else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Clear" || answer == "clear")
- {
- bug = false;
- Current_Location = Line + Ans_B;
- Current_M_Location = Line + Ans_M_B;
- }
- }
- else if (answer == "C" || answer == "c" && bug == false)
- {
- Line = Line + "\\C\\";
- string C = System.IO.File.ReadAllText(Line + Ans_C);
- for (int i = 0; i < C.Length; i++)
- {
- Console.Write(C[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string M_C = System.IO.File.ReadAllText(Line + Ans_M_C);
- for (int i = 0; i < M_C.Length; i++)
- {
- Console.Write(M_C[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- bug = false;
- if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
- && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- string M_C_Bug = System.IO.File.ReadAllText(Line + Ans_M_C);
- for (int i = 0; i < M_C_Bug.Length; i++)
- {
- Console.Write(M_C_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C"
- || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear")
- {
- bug = false;
- }
- }
- }
- else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d")
- {
- bug = false;
- Current_Location = Line + Ans_C;
- Current_M_Location = Line + Ans_M_C;
- }
- }
- else if (answer == "D" || answer == "d" && bug == false)
- {
- Line = Line + "\\D\\";
- string D = System.IO.File.ReadAllText(Line + Ans_D);
- for (int i = 0; i < D.Length; i++)
- {
- Console.Write(D[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string M_D = System.IO.File.ReadAllText(Line + Ans_M_D);
- for (int i = 0; i < M_D.Length; i++)
- {
- Console.Write(M_D[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- bug = false;
- if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
- && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- string M_D_Bug = System.IO.File.ReadAllText(Line + Ans_M_D);
- for (int i = 0; i < M_D_Bug.Length; i++)
- {
- Console.Write(M_D_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C"
- || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear")
- {
- bug = false;
- }
- }
- }
- else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d")
- {
- bug = false;
- Current_Location = Line + Ans_D;
- Current_M_Location = Line + Ans_M_D;
- }
- }
- // IDE JÖHET AMI NEM ABCD VÁLASZ. MINT PL A COMMANDOK
- //COMMANDS
- else if (answer == "Commands" || answer == "commands" && bug == false)
- {
- string Command = System.IO.File.ReadAllText(@"D:\Maffia Story\Commands\Commands.txt");
- Console.ForegroundColor = ConsoleColor.Green;
- for (int i = 0; i < Command.Length; i++)
- {
- Console.Write(Command[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("Exit paranccsal tudsz vissza lépni! ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- bug = false;
- if (answer != "Exit" && answer != "exit" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Az Exit parancs beírásával tudsz vissza lépni a játékba! ");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Green;
- string Command_Bug = System.IO.File.ReadAllText(@"D:\Maffia Story\Commands\Commands.txt");
- for (int i = 0; i < Command_Bug.Length; i++)
- {
- Console.Write(Command_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("Exit paranccsal tudsz vissza lépni! ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "Exit" || answer == "exit" || answer == "Clear" || answer == "clear")
- {
- string Go_Back = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back.Length; i++)
- {
- Console.Write(Go_Back[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
- for (int i = 0; i < Go_Back_M.Length; i++)
- {
- Console.Write(Go_Back_M[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
- && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_Bug = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back_Bug.Length; i++)
- {
- Console.Write(Go_Back_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "Clear" || answer == "clear" || answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands")
- {
- bug = false;
- //TotallyExit = true;
- }
- }
- }
- else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d")
- {
- bug = false;
- }
- }
- }
- }
- //EXIT
- else if (answer == "Exit" && bug == false)
- {
- bug = false;
- Console.ForegroundColor = ConsoleColor.White;
- string Go_Back = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back.Length; i++)
- {
- Console.Write(Go_Back[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
- for (int i = 0; i < Go_Back_M.Length; i++)
- {
- Console.Write(Go_Back_M[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- }
- }
- //CLEAR
- else if (answer == "Clear" || answer == "clear" && bug == false)
- {
- Console.Clear();
- string Go_Back = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back.Length; i++)
- {
- Console.Write(Go_Back[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
- for (int i = 0; i < Go_Back_M.Length; i++)
- {
- Console.Write(Go_Back_M[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
- && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_Bug = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back_Bug.Length; i++)
- {
- Console.Write(Go_Back_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "Clear" || answer == "clear" || answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands")
- {
- bug = false;
- }
- }
- }
- else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d")
- {
- bug = false;
- }
- }
- //HELP
- else if (answer == "Help" || answer == "help" && bug == false)
- {
- Console.ForegroundColor = ConsoleColor.DarkCyan;
- for (int i = 0; i < HelperIO.Length; i++)
- {
- Console.Write(HelperIO[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("Exit paranccsal tudsz vissza lépni! ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- bug = false;
- if (answer != "Exit" && answer != "exit" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Az Exit parancs beírásával tudsz vissza lépni a játékba! ");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.DarkCyan;
- for (int i = 0; i < HelperIO.Length; i++)
- {
- Console.Write(HelperIO[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("Exit paranccsal tudsz vissza lépni! ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "Exit" || answer == "exit" || answer == "Clear" || answer == "clear")
- {
- string Go_Back = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back.Length; i++)
- {
- Console.Write(Go_Back[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
- for (int i = 0; i < Go_Back_M.Length; i++)
- {
- Console.Write(Go_Back_M[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
- && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
- {
- bug = true;
- while (bug == true)
- {
- Console.BackgroundColor = ConsoleColor.DarkRed;
- Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
- Console.BackgroundColor = ConsoleColor.Black;
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_Bug = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back_Bug.Length; i++)
- {
- Console.Write(Go_Back_Bug[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- if (answer == "Clear" || answer == "clear" || answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands")
- {
- bug = false;
- }
- }
- }
- else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
- || answer == "C" || answer == "c" || answer == "D" || answer == "d")
- {
- bug = false;
- }
- }
- }
- }
- //EXIT
- else if (answer == "Exit" && bug == false)
- {
- bug = false;
- string Go_Back = System.IO.File.ReadAllText(Current_Location);
- for (int i = 0; i < Go_Back.Length; i++)
- {
- Console.Write(Go_Back[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.Red;
- string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
- for (int i = 0; i < Go_Back_M.Length; i++)
- {
- Console.Write(Go_Back_M[i]);
- System.Threading.
- Thread.Sleep(ticker);
- }
- Console.ForegroundColor = ConsoleColor.White;
- Console.WriteLine();
- Console.Write("írd be az adott válasz betűjét!: ");
- Console.ForegroundColor = ConsoleColor.Red;
- answer = Console.ReadLine();
- Console.WriteLine();
- Console.ForegroundColor = ConsoleColor.White;
- }
- }
- //HELP's END
- }
- }
- else if (CDkey != CDKEYS)
- {
- Console.WriteLine();
- Console.BackgroundColor = ConsoleColor.Red;
- Console.WriteLine("Hibás CD kulcs!");
- Console.ReadLine();
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement