Advertisement
Guest User

Untitled

a guest
Oct 15th, 2019
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 41.75 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.IO;
  6.  
  7. namespace teszt
  8. {
  9. class Program
  10. {
  11. static void Main(string[] args)
  12. {
  13. string answer;
  14. int ticker = 1;
  15. string Line = System.IO.File.ReadAllText(@"D:\Maffia Story\Helper\Liner.txt");
  16. string HelperIO = System.IO.File.ReadAllText(@"D:\Maffia Story\Commands\Help.txt");
  17.  
  18. string Ans_A = "A.txt";
  19. string Ans_B = "B.txt";
  20. string Ans_C = "C.txt";
  21. string Ans_D = "D.txt";
  22. string Ans_M_A = "M_A.txt";
  23. string Ans_M_B = "M_B.txt";
  24. string Ans_M_C = "M_C.txt";
  25. string Ans_M_D = "M_D.txt";
  26. string Current_Location = "D:\\Maffia Story\\Bevezeto\\bevezeto.txt";
  27. string Current_M_Location = "D:\\Maffia Story\\Bevezeto\\M_bevezeto.txt";
  28.  
  29. bool end = false;
  30. bool bug = false;
  31.  
  32. Console.ForegroundColor = ConsoleColor.Red;
  33. Console.WriteLine("A Játékot kitalálta, megírta: Kapytany vagy FSOCIETY kinek hogy tetszik :) (EZ BIZTOS ÁTLESZ ÍRVA!!)");
  34. Console.ForegroundColor = ConsoleColor.White;
  35.  
  36. string CDKEYS = "asd";
  37.  
  38. System.Console.Write("Add meg a CD kulcsot: ");
  39. string CDkey = null;
  40. while (true)
  41. {
  42. var key = System.Console.ReadKey(true);
  43. if (key.Key == ConsoleKey.Enter)
  44. break;
  45. CDkey += key.KeyChar;
  46. }
  47.  
  48. if (CDkey == CDKEYS)
  49. {
  50. Console.WriteLine();
  51. Console.WriteLine("Felhasználásra került a CD kulcsot. Jó játékot kívánok! [NYOMD MEG AZ ENTERT!] ");
  52. Console.ReadLine();
  53.  
  54. Console.Clear();
  55. Console.ForegroundColor = ConsoleColor.Red;
  56. Console.WriteLine("A Játékot kitalálta, megírta: Kapytany vagy FSOCIETY kinek hogy tetszik :) (EZ BIZTOS ÁTLESZ ÍRVA!!)");
  57. Console.ForegroundColor = ConsoleColor.White;
  58.  
  59. string bevezeto = System.IO.File.ReadAllText(@"D:\Maffia Story\Bevezeto\bevezeto.txt");
  60.  
  61. for (int i = 0; i < bevezeto.Length; i++)
  62.  
  63. {
  64. Console.Write(bevezeto[i]);
  65.  
  66. System.Threading.
  67. Thread.Sleep(ticker);
  68. }
  69.  
  70. Console.ForegroundColor = ConsoleColor.Red;
  71. string M_bevezeto = System.IO.File.ReadAllText(@"D:\Maffia Story\Bevezeto\M_bevezeto.txt");
  72.  
  73. for (int i = 0; i < M_bevezeto.Length; i++)
  74.  
  75. {
  76. Console.Write(M_bevezeto[i]);
  77.  
  78. System.Threading.
  79. Thread.Sleep(ticker);
  80. }
  81.  
  82. Console.ForegroundColor = ConsoleColor.White;
  83. Console.WriteLine();
  84. Console.Write("írd be az adott válasz betűjét!: ");
  85. Console.ForegroundColor = ConsoleColor.Red;
  86. answer = Console.ReadLine();
  87. Console.WriteLine();
  88. Console.ForegroundColor = ConsoleColor.White;
  89.  
  90. while (end == false)
  91. {
  92.  
  93. if (answer == "A" || answer == "a" && bug == false)
  94. {
  95. Line = Line + "\\A\\";
  96. string A = System.IO.File.ReadAllText(Line + Ans_A);
  97.  
  98. for (int i = 0; i < A.Length; i++)
  99.  
  100. {
  101. Console.Write(A[i]);
  102.  
  103. System.Threading.
  104. Thread.Sleep(ticker);
  105.  
  106. }
  107.  
  108. Console.ForegroundColor = ConsoleColor.Red;
  109. string M_A = System.IO.File.ReadAllText(Line + Ans_M_A);
  110.  
  111. for (int i = 0; i < M_A.Length; i++)
  112.  
  113. {
  114. Console.Write(M_A[i]);
  115. System.Threading.
  116. Thread.Sleep(ticker);
  117. }
  118.  
  119. Console.ForegroundColor = ConsoleColor.White;
  120. Console.WriteLine();
  121. Console.Write("írd be az adott válasz betűjét!: ");
  122. Console.ForegroundColor = ConsoleColor.Red;
  123. answer = Console.ReadLine();
  124. Console.WriteLine();
  125. Console.ForegroundColor = ConsoleColor.White;
  126. bug = false;
  127.  
  128. if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c" && answer != "D" && answer != "d"
  129. && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && answer != "Help" && answer != "help" && bug == false) //BELETT ÍRVA A HELPES RÉSZ
  130. {
  131. bug = true;
  132. while (bug == true)
  133. {
  134. Console.BackgroundColor = ConsoleColor.DarkRed;
  135. Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
  136. Console.BackgroundColor = ConsoleColor.Black;
  137. Console.WriteLine();
  138.  
  139. Console.ForegroundColor = ConsoleColor.Red;
  140. string M_A_Bug = System.IO.File.ReadAllText(Line + Ans_M_A);
  141.  
  142. for (int i = 0; i < M_A_Bug.Length; i++)
  143.  
  144. {
  145. Console.Write(M_A_Bug[i]);
  146. System.Threading.
  147. Thread.Sleep(ticker);
  148. }
  149.  
  150. Console.ForegroundColor = ConsoleColor.White;
  151. Console.WriteLine();
  152. Console.Write("írd be az adott válasz betűjét!: ");
  153. Console.ForegroundColor = ConsoleColor.Red;
  154. answer = Console.ReadLine();
  155. Console.WriteLine();
  156. Console.ForegroundColor = ConsoleColor.White;
  157.  
  158. if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C" || answer == "c"
  159. || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear" || answer == "Help" || answer == "help")
  160. {
  161. bug = false;
  162. Current_Location = Line + Ans_A;
  163. Current_M_Location = Line + Ans_M_A;
  164. }
  165. }
  166. }
  167.  
  168. else if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C" || answer == "c"
  169. || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear" || answer == "Help" || answer == "help")
  170. {
  171. bug = false;
  172. Current_Location = Line + Ans_A;
  173. Current_M_Location = Line + Ans_M_A;
  174. }
  175. }
  176.  
  177. else if (answer == "B" || answer == "b" && bug == false)
  178. {
  179. Line = Line + "\\B\\";
  180. string B = System.IO.File.ReadAllText(Line + Ans_B);
  181.  
  182. for (int i = 0; i < B.Length; i++)
  183.  
  184. {
  185. Console.Write(B[i]);
  186. System.Threading.
  187. Thread.Sleep(ticker);
  188. }
  189.  
  190. Console.ForegroundColor = ConsoleColor.Red;
  191. string M_B = System.IO.File.ReadAllText(Line + Ans_M_B);
  192.  
  193. for (int i = 0; i < M_B.Length; i++)
  194.  
  195. {
  196. Console.Write(M_B[i]);
  197. System.Threading.
  198. Thread.Sleep(ticker);
  199. }
  200.  
  201. Console.ForegroundColor = ConsoleColor.White;
  202. Console.WriteLine();
  203. Console.Write("írd be az adott válasz betűjét!: ");
  204. Console.ForegroundColor = ConsoleColor.Red;
  205. answer = Console.ReadLine();
  206. Console.WriteLine();
  207. Console.ForegroundColor = ConsoleColor.White;
  208.  
  209. if (answer != "A" && answer != "a" && answer != "B" && answer != "b"
  210. && answer != "C" && answer != "c" && answer != "D" && answer != "d" && answer != "Clear" && answer != "clear" && bug == false)
  211. {
  212. bug = true;
  213. while (bug == true)
  214. {
  215. Console.BackgroundColor = ConsoleColor.DarkRed;
  216. Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
  217. Console.BackgroundColor = ConsoleColor.Black;
  218. Console.WriteLine();
  219.  
  220. Console.ForegroundColor = ConsoleColor.Red;
  221. string M_B_Bug = System.IO.File.ReadAllText(Line + Ans_M_B);
  222.  
  223. for (int i = 0; i < M_B_Bug.Length; i++)
  224.  
  225. {
  226. Console.Write(M_B_Bug[i]);
  227. System.Threading.
  228. Thread.Sleep(ticker);
  229. }
  230.  
  231. Console.ForegroundColor = ConsoleColor.White;
  232. Console.WriteLine();
  233. Console.Write("írd be az adott válasz betűjét!: ");
  234. Console.ForegroundColor = ConsoleColor.Red;
  235. answer = Console.ReadLine();
  236. Console.WriteLine();
  237. Console.ForegroundColor = ConsoleColor.White;
  238.  
  239. if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
  240. || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Clear" || answer == "clear" || answer == "Commands" || answer == "commands")
  241. {
  242. bug = false;
  243. }
  244. }
  245. }
  246.  
  247. else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
  248. || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Clear" || answer == "clear")
  249. {
  250. bug = false;
  251. Current_Location = Line + Ans_B;
  252. Current_M_Location = Line + Ans_M_B;
  253. }
  254. }
  255.  
  256. else if (answer == "C" || answer == "c" && bug == false)
  257. {
  258. Line = Line + "\\C\\";
  259. string C = System.IO.File.ReadAllText(Line + Ans_C);
  260.  
  261. for (int i = 0; i < C.Length; i++)
  262.  
  263. {
  264. Console.Write(C[i]);
  265. System.Threading.
  266. Thread.Sleep(ticker);
  267. }
  268.  
  269. Console.ForegroundColor = ConsoleColor.Red;
  270. string M_C = System.IO.File.ReadAllText(Line + Ans_M_C);
  271.  
  272. for (int i = 0; i < M_C.Length; i++)
  273.  
  274. {
  275. Console.Write(M_C[i]);
  276. System.Threading.
  277. Thread.Sleep(ticker);
  278. }
  279.  
  280. Console.ForegroundColor = ConsoleColor.White;
  281. Console.WriteLine();
  282. Console.Write("írd be az adott válasz betűjét!: ");
  283. Console.ForegroundColor = ConsoleColor.Red;
  284. answer = Console.ReadLine();
  285. Console.WriteLine();
  286. Console.ForegroundColor = ConsoleColor.White;
  287. bug = false;
  288.  
  289. if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
  290. && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
  291. {
  292. bug = true;
  293. while (bug == true)
  294. {
  295. Console.BackgroundColor = ConsoleColor.DarkRed;
  296. Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
  297. Console.BackgroundColor = ConsoleColor.Black;
  298. Console.WriteLine();
  299.  
  300. Console.ForegroundColor = ConsoleColor.Red;
  301. string M_C_Bug = System.IO.File.ReadAllText(Line + Ans_M_C);
  302.  
  303. for (int i = 0; i < M_C_Bug.Length; i++)
  304.  
  305. {
  306. Console.Write(M_C_Bug[i]);
  307. System.Threading.
  308. Thread.Sleep(ticker);
  309. }
  310.  
  311. Console.ForegroundColor = ConsoleColor.White;
  312. Console.WriteLine();
  313. Console.Write("írd be az adott válasz betűjét!: ");
  314. Console.ForegroundColor = ConsoleColor.Red;
  315. answer = Console.ReadLine();
  316. Console.WriteLine();
  317. Console.ForegroundColor = ConsoleColor.White;
  318.  
  319. if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C"
  320. || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear")
  321. {
  322. bug = false;
  323. }
  324. }
  325. }
  326.  
  327. else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
  328. || answer == "C" || answer == "c" || answer == "D" || answer == "d")
  329. {
  330. bug = false;
  331. Current_Location = Line + Ans_C;
  332. Current_M_Location = Line + Ans_M_C;
  333. }
  334. }
  335.  
  336. else if (answer == "D" || answer == "d" && bug == false)
  337. {
  338. Line = Line + "\\D\\";
  339. string D = System.IO.File.ReadAllText(Line + Ans_D);
  340.  
  341. for (int i = 0; i < D.Length; i++)
  342.  
  343. {
  344. Console.Write(D[i]);
  345.  
  346. System.Threading.
  347. Thread.Sleep(ticker);
  348.  
  349. }
  350.  
  351. Console.ForegroundColor = ConsoleColor.Red;
  352. string M_D = System.IO.File.ReadAllText(Line + Ans_M_D);
  353.  
  354. for (int i = 0; i < M_D.Length; i++)
  355.  
  356. {
  357. Console.Write(M_D[i]);
  358. System.Threading.
  359. Thread.Sleep(ticker);
  360. }
  361.  
  362. Console.ForegroundColor = ConsoleColor.White;
  363. Console.WriteLine();
  364. Console.Write("írd be az adott válasz betűjét!: ");
  365. Console.ForegroundColor = ConsoleColor.Red;
  366. answer = Console.ReadLine();
  367. Console.WriteLine();
  368. Console.ForegroundColor = ConsoleColor.White;
  369. bug = false;
  370.  
  371. if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
  372. && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
  373. {
  374. bug = true;
  375. while (bug == true)
  376. {
  377. Console.BackgroundColor = ConsoleColor.DarkRed;
  378. Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
  379. Console.BackgroundColor = ConsoleColor.Black;
  380. Console.WriteLine();
  381.  
  382. Console.ForegroundColor = ConsoleColor.Red;
  383. string M_D_Bug = System.IO.File.ReadAllText(Line + Ans_M_D);
  384.  
  385. for (int i = 0; i < M_D_Bug.Length; i++)
  386.  
  387. {
  388. Console.Write(M_D_Bug[i]);
  389. System.Threading.
  390. Thread.Sleep(ticker);
  391. }
  392.  
  393. Console.ForegroundColor = ConsoleColor.White;
  394. Console.WriteLine();
  395. Console.Write("írd be az adott válasz betűjét!: ");
  396. Console.ForegroundColor = ConsoleColor.Red;
  397. answer = Console.ReadLine();
  398. Console.WriteLine();
  399. Console.ForegroundColor = ConsoleColor.White;
  400.  
  401. if (answer == "A" || answer == "a" || answer == "B" || answer == "b" || answer == "C"
  402. || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands" || answer == "Clear" || answer == "clear")
  403. {
  404. bug = false;
  405. }
  406. }
  407. }
  408.  
  409. else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
  410. || answer == "C" || answer == "c" || answer == "D" || answer == "d")
  411. {
  412. bug = false;
  413. Current_Location = Line + Ans_D;
  414. Current_M_Location = Line + Ans_M_D;
  415. }
  416. }
  417.  
  418. // IDE JÖHET AMI NEM ABCD VÁLASZ. MINT PL A COMMANDOK
  419.  
  420. //COMMANDS
  421. else if (answer == "Commands" || answer == "commands" && bug == false)
  422. {
  423. string Command = System.IO.File.ReadAllText(@"D:\Maffia Story\Commands\Commands.txt");
  424.  
  425. Console.ForegroundColor = ConsoleColor.Green;
  426. for (int i = 0; i < Command.Length; i++)
  427.  
  428. {
  429. Console.Write(Command[i]);
  430. System.Threading.
  431. Thread.Sleep(ticker);
  432. }
  433.  
  434.  
  435. Console.ForegroundColor = ConsoleColor.White;
  436. Console.WriteLine();
  437. Console.Write("Exit paranccsal tudsz vissza lépni! ");
  438. Console.ForegroundColor = ConsoleColor.Red;
  439. answer = Console.ReadLine();
  440. Console.WriteLine();
  441. Console.ForegroundColor = ConsoleColor.White;
  442. bug = false;
  443.  
  444. if (answer != "Exit" && answer != "exit" && answer != "Clear" && answer != "clear" && bug == false)
  445. {
  446. bug = true;
  447. while (bug == true)
  448. {
  449. Console.BackgroundColor = ConsoleColor.DarkRed;
  450. Console.WriteLine("Az Exit parancs beírásával tudsz vissza lépni a játékba! ");
  451. Console.BackgroundColor = ConsoleColor.Black;
  452. Console.WriteLine();
  453.  
  454. Console.ForegroundColor = ConsoleColor.Green;
  455. string Command_Bug = System.IO.File.ReadAllText(@"D:\Maffia Story\Commands\Commands.txt");
  456.  
  457. for (int i = 0; i < Command_Bug.Length; i++)
  458.  
  459. {
  460. Console.Write(Command_Bug[i]);
  461. System.Threading.
  462. Thread.Sleep(ticker);
  463. }
  464.  
  465. Console.ForegroundColor = ConsoleColor.White;
  466. Console.WriteLine();
  467. Console.Write("Exit paranccsal tudsz vissza lépni! ");
  468. Console.ForegroundColor = ConsoleColor.Red;
  469. answer = Console.ReadLine();
  470. Console.WriteLine();
  471. Console.ForegroundColor = ConsoleColor.White;
  472.  
  473. if (answer == "Exit" || answer == "exit" || answer == "Clear" || answer == "clear")
  474. {
  475. string Go_Back = System.IO.File.ReadAllText(Current_Location);
  476.  
  477. for (int i = 0; i < Go_Back.Length; i++)
  478.  
  479. {
  480. Console.Write(Go_Back[i]);
  481. System.Threading.
  482. Thread.Sleep(ticker);
  483. }
  484.  
  485. Console.ForegroundColor = ConsoleColor.Red;
  486. string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
  487.  
  488. for (int i = 0; i < Go_Back_M.Length; i++)
  489.  
  490. {
  491. Console.Write(Go_Back_M[i]);
  492. System.Threading.
  493. Thread.Sleep(ticker);
  494. }
  495.  
  496. Console.ForegroundColor = ConsoleColor.White;
  497. Console.WriteLine();
  498. Console.Write("írd be az adott válasz betűjét!: ");
  499. Console.ForegroundColor = ConsoleColor.Red;
  500. answer = Console.ReadLine();
  501. Console.WriteLine();
  502. Console.ForegroundColor = ConsoleColor.White;
  503.  
  504. if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
  505. && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
  506. {
  507. bug = true;
  508. while (bug == true)
  509. {
  510. Console.BackgroundColor = ConsoleColor.DarkRed;
  511. Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
  512. Console.BackgroundColor = ConsoleColor.Black;
  513. Console.WriteLine();
  514.  
  515. Console.ForegroundColor = ConsoleColor.Red;
  516. string Go_Back_Bug = System.IO.File.ReadAllText(Current_Location);
  517.  
  518. for (int i = 0; i < Go_Back_Bug.Length; i++)
  519.  
  520. {
  521. Console.Write(Go_Back_Bug[i]);
  522. System.Threading.
  523. Thread.Sleep(ticker);
  524. }
  525.  
  526. Console.ForegroundColor = ConsoleColor.White;
  527. Console.WriteLine();
  528. Console.Write("írd be az adott válasz betűjét!: ");
  529. Console.ForegroundColor = ConsoleColor.Red;
  530. answer = Console.ReadLine();
  531. Console.WriteLine();
  532. Console.ForegroundColor = ConsoleColor.White;
  533.  
  534. if (answer == "Clear" || answer == "clear" || answer == "A" || answer == "a" || answer == "B" || answer == "b"
  535. || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands")
  536. {
  537. bug = false;
  538. //TotallyExit = true;
  539. }
  540. }
  541. }
  542.  
  543. else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
  544. || answer == "C" || answer == "c" || answer == "D" || answer == "d")
  545. {
  546. bug = false;
  547. }
  548. }
  549. }
  550. }
  551.  
  552. //EXIT
  553. else if (answer == "Exit" && bug == false)
  554. {
  555. bug = false;
  556.  
  557. Console.ForegroundColor = ConsoleColor.White;
  558. string Go_Back = System.IO.File.ReadAllText(Current_Location);
  559.  
  560. for (int i = 0; i < Go_Back.Length; i++)
  561.  
  562. {
  563. Console.Write(Go_Back[i]);
  564. System.Threading.
  565. Thread.Sleep(ticker);
  566. }
  567.  
  568. Console.ForegroundColor = ConsoleColor.Red;
  569. string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
  570.  
  571. for (int i = 0; i < Go_Back_M.Length; i++)
  572.  
  573. {
  574. Console.Write(Go_Back_M[i]);
  575. System.Threading.
  576. Thread.Sleep(ticker);
  577. }
  578.  
  579. Console.ForegroundColor = ConsoleColor.White;
  580. Console.WriteLine();
  581. Console.Write("írd be az adott válasz betűjét!: ");
  582. Console.ForegroundColor = ConsoleColor.Red;
  583. answer = Console.ReadLine();
  584. Console.WriteLine();
  585. Console.ForegroundColor = ConsoleColor.White;
  586. }
  587. }
  588.  
  589. //CLEAR
  590. else if (answer == "Clear" || answer == "clear" && bug == false)
  591. {
  592. Console.Clear();
  593.  
  594. string Go_Back = System.IO.File.ReadAllText(Current_Location);
  595.  
  596. for (int i = 0; i < Go_Back.Length; i++)
  597.  
  598. {
  599. Console.Write(Go_Back[i]);
  600. System.Threading.
  601. Thread.Sleep(ticker);
  602. }
  603.  
  604. Console.ForegroundColor = ConsoleColor.Red;
  605. string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
  606.  
  607. for (int i = 0; i < Go_Back_M.Length; i++)
  608.  
  609. {
  610. Console.Write(Go_Back_M[i]);
  611. System.Threading.
  612. Thread.Sleep(ticker);
  613. }
  614.  
  615. Console.ForegroundColor = ConsoleColor.White;
  616. Console.WriteLine();
  617. Console.Write("írd be az adott válasz betűjét!: ");
  618. Console.ForegroundColor = ConsoleColor.Red;
  619. answer = Console.ReadLine();
  620. Console.WriteLine();
  621. Console.ForegroundColor = ConsoleColor.White;
  622.  
  623. if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
  624. && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
  625. {
  626. bug = true;
  627. while (bug == true)
  628. {
  629. Console.BackgroundColor = ConsoleColor.DarkRed;
  630. Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
  631. Console.BackgroundColor = ConsoleColor.Black;
  632. Console.WriteLine();
  633.  
  634. Console.ForegroundColor = ConsoleColor.Red;
  635. string Go_Back_Bug = System.IO.File.ReadAllText(Current_Location);
  636.  
  637. for (int i = 0; i < Go_Back_Bug.Length; i++)
  638.  
  639. {
  640. Console.Write(Go_Back_Bug[i]);
  641. System.Threading.
  642. Thread.Sleep(ticker);
  643. }
  644.  
  645. Console.ForegroundColor = ConsoleColor.White;
  646. Console.WriteLine();
  647. Console.Write("írd be az adott válasz betűjét!: ");
  648. Console.ForegroundColor = ConsoleColor.Red;
  649. answer = Console.ReadLine();
  650. Console.WriteLine();
  651. Console.ForegroundColor = ConsoleColor.White;
  652.  
  653. if (answer == "Clear" || answer == "clear" || answer == "A" || answer == "a" || answer == "B" || answer == "b"
  654. || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands")
  655. {
  656. bug = false;
  657. }
  658. }
  659. }
  660.  
  661. else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
  662. || answer == "C" || answer == "c" || answer == "D" || answer == "d")
  663. {
  664. bug = false;
  665. }
  666. }
  667.  
  668. //HELP
  669. else if (answer == "Help" || answer == "help" && bug == false)
  670. {
  671. Console.ForegroundColor = ConsoleColor.DarkCyan;
  672. for (int i = 0; i < HelperIO.Length; i++)
  673.  
  674. {
  675. Console.Write(HelperIO[i]);
  676. System.Threading.
  677. Thread.Sleep(ticker);
  678. }
  679.  
  680.  
  681. Console.ForegroundColor = ConsoleColor.White;
  682. Console.WriteLine();
  683. Console.Write("Exit paranccsal tudsz vissza lépni! ");
  684. Console.ForegroundColor = ConsoleColor.Red;
  685. answer = Console.ReadLine();
  686. Console.WriteLine();
  687. Console.ForegroundColor = ConsoleColor.White;
  688. bug = false;
  689.  
  690. if (answer != "Exit" && answer != "exit" && answer != "Clear" && answer != "clear" && bug == false)
  691. {
  692. bug = true;
  693. while (bug == true)
  694. {
  695. Console.BackgroundColor = ConsoleColor.DarkRed;
  696. Console.WriteLine("Az Exit parancs beírásával tudsz vissza lépni a játékba! ");
  697. Console.BackgroundColor = ConsoleColor.Black;
  698. Console.WriteLine();
  699.  
  700. Console.ForegroundColor = ConsoleColor.DarkCyan;
  701.  
  702. for (int i = 0; i < HelperIO.Length; i++)
  703.  
  704. {
  705. Console.Write(HelperIO[i]);
  706. System.Threading.
  707. Thread.Sleep(ticker);
  708. }
  709.  
  710. Console.ForegroundColor = ConsoleColor.White;
  711. Console.WriteLine();
  712. Console.Write("Exit paranccsal tudsz vissza lépni! ");
  713. Console.ForegroundColor = ConsoleColor.Red;
  714. answer = Console.ReadLine();
  715. Console.WriteLine();
  716. Console.ForegroundColor = ConsoleColor.White;
  717.  
  718. if (answer == "Exit" || answer == "exit" || answer == "Clear" || answer == "clear")
  719. {
  720. string Go_Back = System.IO.File.ReadAllText(Current_Location);
  721.  
  722. for (int i = 0; i < Go_Back.Length; i++)
  723.  
  724. {
  725. Console.Write(Go_Back[i]);
  726. System.Threading.
  727. Thread.Sleep(ticker);
  728. }
  729.  
  730. Console.ForegroundColor = ConsoleColor.Red;
  731. string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
  732.  
  733. for (int i = 0; i < Go_Back_M.Length; i++)
  734.  
  735. {
  736. Console.Write(Go_Back_M[i]);
  737. System.Threading.
  738. Thread.Sleep(ticker);
  739. }
  740.  
  741. Console.ForegroundColor = ConsoleColor.White;
  742. Console.WriteLine();
  743. Console.Write("írd be az adott válasz betűjét!: ");
  744. Console.ForegroundColor = ConsoleColor.Red;
  745. answer = Console.ReadLine();
  746. Console.WriteLine();
  747. Console.ForegroundColor = ConsoleColor.White;
  748.  
  749. if (answer != "A" && answer != "a" && answer != "B" && answer != "b" && answer != "C" && answer != "c"
  750. && answer != "D" && answer != "d" && answer != "Commands" && answer != "commands" && answer != "Clear" && answer != "clear" && bug == false)
  751. {
  752. bug = true;
  753. while (bug == true)
  754. {
  755. Console.BackgroundColor = ConsoleColor.DarkRed;
  756. Console.WriteLine("Csak a felajánlott betűt használd. Ellenkező esetben nem tudsz tovább haladni!");
  757. Console.BackgroundColor = ConsoleColor.Black;
  758. Console.WriteLine();
  759.  
  760. Console.ForegroundColor = ConsoleColor.Red;
  761. string Go_Back_Bug = System.IO.File.ReadAllText(Current_Location);
  762.  
  763. for (int i = 0; i < Go_Back_Bug.Length; i++)
  764.  
  765. {
  766. Console.Write(Go_Back_Bug[i]);
  767. System.Threading.
  768. Thread.Sleep(ticker);
  769. }
  770.  
  771. Console.ForegroundColor = ConsoleColor.White;
  772. Console.WriteLine();
  773. Console.Write("írd be az adott válasz betűjét!: ");
  774. Console.ForegroundColor = ConsoleColor.Red;
  775. answer = Console.ReadLine();
  776. Console.WriteLine();
  777. Console.ForegroundColor = ConsoleColor.White;
  778.  
  779. if (answer == "Clear" || answer == "clear" || answer == "A" || answer == "a" || answer == "B" || answer == "b"
  780. || answer == "C" || answer == "c" || answer == "D" || answer == "d" || answer == "Commands" || answer == "commands")
  781. {
  782. bug = false;
  783. }
  784. }
  785. }
  786.  
  787. else if (answer == "A" || answer == "a" || answer == "B" || answer == "b"
  788. || answer == "C" || answer == "c" || answer == "D" || answer == "d")
  789. {
  790. bug = false;
  791. }
  792. }
  793. }
  794. }
  795.  
  796. //EXIT
  797. else if (answer == "Exit" && bug == false)
  798. {
  799. bug = false;
  800.  
  801. string Go_Back = System.IO.File.ReadAllText(Current_Location);
  802.  
  803. for (int i = 0; i < Go_Back.Length; i++)
  804.  
  805. {
  806. Console.Write(Go_Back[i]);
  807. System.Threading.
  808. Thread.Sleep(ticker);
  809. }
  810.  
  811. Console.ForegroundColor = ConsoleColor.Red;
  812. string Go_Back_M = System.IO.File.ReadAllText(Current_M_Location);
  813.  
  814. for (int i = 0; i < Go_Back_M.Length; i++)
  815.  
  816. {
  817. Console.Write(Go_Back_M[i]);
  818. System.Threading.
  819. Thread.Sleep(ticker);
  820. }
  821.  
  822. Console.ForegroundColor = ConsoleColor.White;
  823. Console.WriteLine();
  824. Console.Write("írd be az adott válasz betűjét!: ");
  825. Console.ForegroundColor = ConsoleColor.Red;
  826. answer = Console.ReadLine();
  827. Console.WriteLine();
  828. Console.ForegroundColor = ConsoleColor.White;
  829. }
  830. }
  831. //HELP's END
  832. }
  833. }
  834. else if (CDkey != CDKEYS)
  835. {
  836. Console.WriteLine();
  837. Console.BackgroundColor = ConsoleColor.Red;
  838. Console.WriteLine("Hibás CD kulcs!");
  839. Console.ReadLine();
  840. }
  841. }
  842. }
  843. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement