Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2017
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.30 KB | None | 0 0
  1. import java.util.Scanner;
  2. import java.util.Random;
  3. public class Main {
  4. public static void main(String args[]) {
  5. Scanner Scanner;
  6. Random Random;
  7. Scanner = new Scanner(System.in);
  8. Random rand = new Random();
  9. boolean one = true;
  10. boolean two = false;
  11. int i = 1;
  12. int c = 0;
  13. String[] $table = {"1", "2", "3"};
  14. int $x = rand.nextInt(3);
  15. int $b = rand.nextInt(40);
  16. // To make this work you are going to need to learn how to change booleans in a string command //
  17. if ((one != false) && (two != true)) {
  18. try {
  19. Thread.sleep(0);
  20. System.out.println("Welcome to DOS/TEST 1.0.0");
  21. Thread.sleep(1000);
  22. System.out.println("Loading Assets...");
  23. Thread.sleep(4000);
  24. System.out.println("[SYS] Please Enter the Given Access Key (GAK) to Continue");
  25. String $gak = Scanner.next();
  26. if ($gak.equals("58672525")) {
  27. if ((one != true) && (two != false)) {
  28. System.out.println("[SYS] GAK Has been Entered Correctly...");
  29. Thread.sleep(1000);
  30. System.out.println("Loading Assets...");
  31. Thread.sleep(4000);
  32. }
  33. }
  34. } catch (InterruptedException ex) {
  35.  
  36. }
  37. }
  38. if (i == 1) {
  39. if ((one != true) && (two != false)) {
  40. try {
  41. Thread.sleep(0);
  42. System.out.println("Welcome to DOS/TEST 1.0.0");
  43. Thread.sleep(1000);
  44. System.out.println("Loading Assets...");
  45. Thread.sleep(4000);
  46. System.out.println("[SYS] Please Enter the Given Access Key (GAK) to Continue");
  47. String $gak1 = Scanner.next();
  48. if ($gak1.equals("58672525")) {
  49. if ((one != true) && (two != false)) {
  50. System.out.println("[SYS] GAK Has been Entered Correctly...");
  51. Thread.sleep(1000);
  52. System.out.println("Loading Assets...");
  53. Thread.sleep(4000);
  54. System.out.println("[SYS] Credentials Found... Please Enter your Username");
  55. String $userSet = Scanner.next();
  56. if ($userSet.equals("admin")) {
  57. if ((one != true) && (two != false)) {
  58. System.out.println("[SYS] Please Enter your Password");
  59. String $passSet = Scanner.next();
  60. if ($passSet.equals("admin")) {
  61. if ((one != true) && (two != false)) {
  62. System.out.println("Welcome back " + $userSet);
  63. Thread.sleep(1000);
  64. System.out.println("[DB] Calculating Daily Bonus...");
  65. Thread.sleep(4000);
  66. System.out.println("[DB] Congratulations! You earned " + $table[$x] +
  67. " Coins!");
  68. Thread.sleep(3000);
  69. if ($x == 0) {
  70. if ((one != true) && (two != false)) {
  71. c++;
  72. }
  73. }
  74. if ($x == 1) {
  75. if ((one != true) && (two != false)) {
  76. c++;
  77. c++;
  78. }
  79. }
  80. if ($x == 2) {
  81. if ((one != true) && (two != false)) {
  82. c++;
  83. c++;
  84. c++;
  85. }
  86. }
  87. System.out.println("[DB] You now have " + c + " Coins!");
  88. Thread.sleep(1000);
  89. }
  90. }
  91. if ($b == 17) {
  92. if ((one != true) && (two != false)) {
  93. System.out.println("[MB] You Struck Gold!");
  94. Thread.sleep(1000);
  95. System.out.println("[MB] You Got a Rare Mega Bonus!");
  96. Thread.sleep(1000);
  97. System.out.println("+7 Coins");
  98. Thread.sleep(4000);
  99. c++;
  100. c++;
  101. c++;
  102. c++;
  103. c++;
  104. c++;
  105. c++;
  106. System.out.println("You now have " + c + " Coins!");
  107. Thread.sleep(0);
  108. }
  109. }
  110. }
  111. } else {
  112. System.out.println("Invalid Credentials");
  113. Thread.sleep(1000);
  114. System.out.println("[SYS] Locking Device...");
  115. Thread.sleep(4000);
  116. System.out.println("[SYS] System Fully Locked... [Restart to Proceed]");
  117. }
  118. }
  119. } else {
  120. System.out.println("Invalid Credentials");
  121. Thread.sleep(1000);
  122. System.out.println("[SYS] Locking Device...");
  123. Thread.sleep(4000);
  124. System.out.println("[SYS] System Fully Locked... [Restart to Proceed]");
  125. }
  126. } catch (InterruptedException ex) {
  127. System.out.println(" ");
  128. }
  129. }
  130. } else {
  131. System.out.println("Null, End of String [arg0]");
  132. }
  133. if (i == 1) {
  134. if ((one != false) && (two != true)) {
  135. try {
  136. Thread.sleep(0);
  137. System.out.println("Welcome to DOS/TEST 1.0.0");
  138. Thread.sleep(1000);
  139. System.out.println("Loading Assets...");
  140. Thread.sleep(4000);
  141. System.out.println("[SYS] No Username or Password found! Type 'CLC' to Create Login Credentials");
  142. String $CLC = Scanner.next();
  143. if ($CLC.equals("CLC")) {
  144. if ((one != false) && (two != true)) {
  145. System.out.println("Loading Assets...");
  146. Thread.sleep(4000);
  147. System.out.println("Please Enter a Username...");
  148. String $user = Scanner.next();
  149. System.out.println("Loading Assets...");
  150. Thread.sleep(4000);
  151. System.out.println("Please Enter a Password");
  152. String $pass = Scanner.next();
  153. System.out.println("Loading Assets...");
  154. Thread.sleep(4000);
  155. System.out.println("Username: " + $user + " Password: " + $pass + " are these the Correct Credentials you set? [yes] [no]");
  156. String $choice = Scanner.next();
  157. if ($choice.equals("yes")) {
  158. if ((one != false) && (two != true)) {
  159. System.out.println("Loading Assets...");
  160. Thread.sleep(4000);
  161. System.out.println("Credentials Saved...");
  162. Thread.sleep(2000);
  163. System.out.println("[SYS] Restarting...");
  164. Thread.sleep(4000);
  165. System.out.println("Welcome to DOS/TEST 1.0.0");
  166. Thread.sleep(1000);
  167. System.out.println("Loading Assets...");
  168. Thread.sleep(4000);
  169. System.out.println("Credentials Detected. Please Enter your Username");
  170. String $user2 = Scanner.next();
  171. if ($user2.equals($user)) {
  172. if ((one != false) && (two != true)) {
  173. System.out.println("Please Enter your Password");
  174. String $pass2 = Scanner.next();
  175. if ($pass2.equals($pass)) {
  176. if ((one != false) && (two != true)) {
  177. System.out.println("Welcome back " + $user);
  178. Thread.sleep(1000);
  179. System.out.println("[DB] Calculating Daily Bonus...");
  180. Thread.sleep(4000);
  181. System.out.println("[DB] Congratulations! You earned " + $table[$x] + " Coins!");
  182. Thread.sleep(3000);
  183. if ($x == 0) {
  184. if ((one != true) && (two != false)) {
  185. c++;
  186. }
  187. }
  188. if ($x == 1) {
  189. if ((one != true) && (two != false)) {
  190. c++;
  191. c++;
  192. }
  193. }
  194. if ($x == 2) {
  195. if ((one != true) && (two != false)) {
  196. c++;
  197. c++;
  198. c++;
  199. }
  200. }
  201. System.out.println("[DB] You now have " + c + " Coins!");
  202. Thread.sleep(1000);
  203. if ($b == 17) {
  204. if ((one != true) && (two != false)) {
  205. System.out.println("[MB] You Struck Gold!");
  206. Thread.sleep(1000);
  207. System.out.println("[MB] You Got a Rare Mega Bonus!");
  208. Thread.sleep(1000);
  209. System.out.println("+7 Coins");
  210. Thread.sleep(4000);
  211. c++;
  212. c++;
  213. c++;
  214. c++;
  215. c++;
  216. c++;
  217. c++;
  218. System.out.println("You now have " + c + " Coins!");
  219. Thread.sleep(0);
  220. }
  221. }
  222. }
  223. } else {
  224. System.out.println("Invalid Credentials");
  225. Thread.sleep(1000);
  226. System.out.println("[SYS] Locking Device...");
  227. Thread.sleep(4000);
  228. System.out.println("[SYS] System Fully Locked... [Restart to Proceed]");
  229. }
  230. }
  231. } else {
  232. System.out.println("Invalid Credentials...");
  233. Thread.sleep(1000);
  234. System.out.println("[SYS] Locking Device...");
  235. Thread.sleep(4000);
  236. System.out.println("[SYS] System Fully Locked... [Restart to Proceed]");
  237. }
  238. }
  239. }
  240. if ($choice.equals("no")) {
  241. if ((one != false) && (two != true)) {
  242. System.out.println("Credentials Revoked...");
  243. Thread.sleep(0);
  244. }
  245. }
  246. } else {
  247. System.out.println("null > End of String[arg0]");
  248. Thread.sleep(0);
  249. }
  250. }
  251. } catch (InterruptedException ex) {
  252. System.out.println(" ");
  253. }
  254. }
  255. }
  256. }
  257. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement