Yohoho.io Cheats

Cheats for the popular IO game, Yohoho.IO!

当前为 2019-10-20 提交的版本,查看 最新版本

  1. // ==UserScript==
  2. // @name Yohoho.io Cheats
  3. // @namespace http://yohoho.io/
  4. // @version 1.1.4
  5. // @description Cheats for the popular IO game, Yohoho.IO!
  6. // @author Steviegt6
  7. // @match https://yohoho.io/
  8. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
  9. // @grant none
  10. // ==/UserScript==
  11.  
  12. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  13. // Contact Info:
  14. // Steviegt6#9616 (discord)
  15. // Steviegt6 (github)
  16. // https://steviegt6/github.io/ (website)
  17. // https://discordapp.com/invite/tYzEbqX (discord server)
  18. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  19.  
  20. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  21. // Version History:
  22. // -=-=-=-=-
  23. // v1.1.4 patch
  24. // XP patch
  25. // -=-=-=-=-
  26. // v1.1.3 patch
  27. // Patch
  28. // -=-=-=-=-
  29. // v1.1.2 qol/patch
  30. // Small qol tweaks
  31. // Fixed skin selection bugs
  32. // You're allowed to view the skisn menu again
  33. // -=-=-=-=-
  34. // v1.1.1 patch
  35. // Small bug fixes
  36. // -=-=-=-=-
  37. // v1.1.0 update
  38. // Fixed many bugs.
  39. // -=-=-=-=-
  40. // v1.0.0 release
  41. // Initial release. Buggy.
  42. // -=-=-=-=-
  43. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  44.  
  45. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  46. // Guide:
  47. // Press 'O' to set your coins to any value you want!
  48. // Press 'P' to change your character! (Buggy)
  49. // Press 'I' to change your island!
  50. // Press 'X' to set your XP to any value you want! (Buggy)
  51. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  52.  
  53. showCheats();
  54.  
  55. document.title = "*HACKED* YoHoHo.io - pirate battle royale io game";
  56.  
  57. document.addEventListener('keydown', cheats, false);
  58.  
  59. function showCheats()
  60. {
  61. var box = document.getElementById("desktop-controls");
  62. var controls = document.createElement("div");
  63. controls.className = "title2";
  64. controls.id = "hackids";
  65. var hacks = document.getElementById("hackids");
  66. var hackselement = document.createElement("div");
  67. var hackstextnode = document.createTextNode("I - Change your island (Conflicts with XP cheat.)" + " O - Gain a set amount of coins" + " P = Change your character, buggy" + " X = Set XP! (Conflicts with island cheat, buggy.)");
  68. hackselement.appendChild(hackstextnode);
  69. var controlstextnode = document.createTextNode("Cheats");
  70. box.appendChild(controls);
  71. box.appendChild(hackselement);
  72. }
  73.  
  74. function cheats(e)
  75. {
  76. if (e.keyCode =="79") //O - Coins
  77. {
  78. var a = prompt("What would you like to set your coin coint to?");
  79. if(isNaN(a))
  80. {
  81. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  82. }
  83. else
  84. {
  85. localStorage.setItem("coinsOwned", a);
  86. document.getElementById("homepage-booty").innerHTML = a;
  87. document.getElementById("skin-popup-booty").innerHTML = a;
  88. }
  89. }
  90. else
  91. if (e.keyCode =="88") //X - XP
  92. {
  93. var x = prompt("What would you like to set your XP to?");
  94. if(isNaN(x))
  95. {
  96. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  97. }
  98. else
  99. {
  100. localStorage.setItem("playerXP", a);
  101. document.getElementById("homepage-booty").innerHTML = a;
  102. document.getElementById("skin-popup-booty").innerHTML = a;
  103. }
  104. }
  105. else if(e.keyCode == "80") //P - Character
  106. {
  107. var b = prompt("Which character would you like to become? Please pick a number between 1 and 35!")
  108. if (isNaN(b))
  109. {
  110. alert("Oops! something went wrong! Perhaps enterign a number next time will solve the issue?")
  111. }
  112. else if (b < 1 || b > 35)
  113. {
  114. alert("Oops! something went wrong! Please choose a number between 1 and 35!")
  115. }
  116. else if (b != null || b != undefined || b!= "")
  117. {
  118. localStorage.setItem("playerSkin", b);
  119. alert("Skin selected! Reloading...")
  120. location.reload()
  121. }
  122. }
  123. else if(e.keyCode == "73") //I - Island
  124. {
  125. var c = prompt("Which island would you like to travel to?\n1 = Tortuga\n2 = Beach\n3 = Easter\n4 = Wreck\n5 = Aztec\n6 = Volcano\n7 = Village")
  126. if(c == 1) ////0,140,700,2100,4400,7600,13500
  127. {
  128. localStorage.setItem("playerXP", 0);
  129. alert("Island set to Tortuga. Reloading...");
  130. location.reload()
  131. }
  132. else if(c == 2)
  133. {
  134. localStorage.setItem("playerXP", 140);
  135. alert("Island set to Beach. Reloading...");
  136. location.reload()
  137. }
  138. else if(c == 3)
  139. {
  140. localStorage.setItem("playerXP", 700);
  141. alert("Island set to Easter. Reloading...");
  142. location.reload()
  143. }
  144. else if(c == 4){
  145. localStorage.setItem("playerXP", 2100);
  146. alert("Island set to Wreck. Reloading...");
  147. location.reload()
  148. }
  149. else if(c == 5){
  150. localStorage.setItem("playerXP", 4400);
  151. alert("Island set to Aztec. Reloading...");
  152. location.reload()
  153. }
  154. else if(c == 6){
  155. localStorage.setItem("playerXP", 7600);
  156. alert("Island set to Volcano. Reloading...");
  157. location.reload()
  158. }
  159. else if(c == 7){
  160. localStorage.setItem("playerXP", 13500);
  161. alert("Island set to Volcano. Reloading...");
  162. location.reload()
  163. }
  164. else if(c != (1 || 2 || 3 || 4 || 5 || 6 || 7)){
  165. alert("Oops! Something went wrong! Please enter a number between 1 and 7!");
  166. location.reload()
  167. }
  168. }
  169. }