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.5
  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.5 patch
  24. // XP patch 2.0
  25. // -=-=-=-=-
  26. // v1.1.4 patch
  27. // XP patch
  28. // -=-=-=-=-
  29. // v1.1.3 patch
  30. // Patch
  31. // -=-=-=-=-
  32. // v1.1.2 qol/patch
  33. // Small qol tweaks
  34. // Fixed skin selection bugs
  35. // You're allowed to view the skisn menu again
  36. // -=-=-=-=-
  37. // v1.1.1 patch
  38. // Small bug fixes
  39. // -=-=-=-=-
  40. // v1.1.0 update
  41. // Fixed many bugs.
  42. // -=-=-=-=-
  43. // v1.0.0 release
  44. // Initial release. Buggy.
  45. // -=-=-=-=-
  46. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  47.  
  48. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  49. // Guide:
  50. // Press 'O' to set your coins to any value you want!
  51. // Press 'P' to change your character! (Buggy)
  52. // Press 'I' to change your island!
  53. // Press 'X' to set your XP to any value you want! (Buggy)
  54. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  55.  
  56. showCheats();
  57.  
  58. document.title = "*HACKED* YoHoHo.io - pirate battle royale io game";
  59.  
  60. document.addEventListener('keydown', cheats, false);
  61.  
  62. function showCheats()
  63. {
  64. var box = document.getElementById("desktop-controls");
  65. var controls = document.createElement("div");
  66. controls.className = "title2";
  67. controls.id = "hackids";
  68. var hacks = document.getElementById("hackids");
  69. var hackselement = document.createElement("div");
  70. 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.)");
  71. hackselement.appendChild(hackstextnode);
  72. var controlstextnode = document.createTextNode("Cheats");
  73. box.appendChild(controls);
  74. box.appendChild(hackselement);
  75. }
  76.  
  77. function cheats(e)
  78. {
  79. if (e.keyCode =="79") //O - Coins
  80. {
  81. var a = prompt("What would you like to set your coin coint to?");
  82. if(isNaN(a))
  83. {
  84. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  85. }
  86. else
  87. {
  88. localStorage.setItem("coinsOwned", a);
  89. document.getElementById("homepage-booty").innerHTML = a;
  90. document.getElementById("skin-popup-booty").innerHTML = a;
  91. }
  92. }
  93. else
  94. if (e.keyCode =="88") //X - XP
  95. {
  96. var x = prompt("What would you like to set your XP to?");
  97. if(isNaN(x))
  98. {
  99. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  100. }
  101. else if (x >= 13501)
  102. {
  103. localStorage.setItem("playerXP", 13500);
  104. }
  105. else if (x <= 0)
  106. {
  107. localStorage.setItem("playerXP", 0);
  108. }
  109. else
  110. {
  111. localStorage.setItem("playerXP", 0);
  112. }
  113. }
  114. else if(e.keyCode == "80") //P - Character
  115. {
  116. var b = prompt("Which character would you like to become? Please pick a number between 1 and 35!")
  117. if (isNaN(b))
  118. {
  119. alert("Oops! something went wrong! Perhaps enterign a number next time will solve the issue?")
  120. }
  121. else if (b < 1 || b > 35)
  122. {
  123. alert("Oops! something went wrong! Please choose a number between 1 and 35!")
  124. }
  125. else if (b != null || b != undefined || b!= "")
  126. {
  127. localStorage.setItem("playerSkin", b);
  128. alert("Skin selected! Reloading...")
  129. location.reload()
  130. }
  131. }
  132. else if(e.keyCode == "73") //I - Island
  133. {
  134. 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")
  135. if(c == 1) ////0,140,700,2100,4400,7600,13500
  136. {
  137. localStorage.setItem("playerXP", 0);
  138. alert("Island set to Tortuga. Reloading...");
  139. location.reload()
  140. }
  141. else if(c == 2)
  142. {
  143. localStorage.setItem("playerXP", 140);
  144. alert("Island set to Beach. Reloading...");
  145. location.reload()
  146. }
  147. else if(c == 3)
  148. {
  149. localStorage.setItem("playerXP", 700);
  150. alert("Island set to Easter. Reloading...");
  151. location.reload()
  152. }
  153. else if(c == 4){
  154. localStorage.setItem("playerXP", 2100);
  155. alert("Island set to Wreck. Reloading...");
  156. location.reload()
  157. }
  158. else if(c == 5){
  159. localStorage.setItem("playerXP", 4400);
  160. alert("Island set to Aztec. Reloading...");
  161. location.reload()
  162. }
  163. else if(c == 6){
  164. localStorage.setItem("playerXP", 7600);
  165. alert("Island set to Volcano. Reloading...");
  166. location.reload()
  167. }
  168. else if(c == 7){
  169. localStorage.setItem("playerXP", 13500);
  170. alert("Island set to Volcano. Reloading...");
  171. location.reload()
  172. }
  173. else if(c != (1 || 2 || 3 || 4 || 5 || 6 || 7)){
  174. alert("Oops! Something went wrong! Please enter a number between 1 and 7!");
  175. location.reload()
  176. }
  177. }
  178. }