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