Yohoho.io Cheats

Cheats for the popular IO game, Yohoho.IO! Press 'p' to change your pet. 'l' to change the pet's level, 'x' to change your xp, 'i' to change your island, 'c' to change your character, and 'o' to change your coins.

  1. // ==UserScript==
  2. // @name Yohoho.io Cheats
  3. // @namespace http://yohoho.io/
  4. // @version 1.2.1
  5. // @description Cheats for the popular IO game, Yohoho.IO! Press 'p' to change your pet. 'l' to change the pet's level, 'x' to change your xp, 'i' to change your island, 'c' to change your character, and 'o' to change your coins.
  6. // @author Steviegt6
  7. // @match https://yohoho.io/
  8. // @match http://yohoho.io/
  9. // @require https://ajax.googleapis.com/ajax/libs/jquery/3.4.1/jquery.min.js
  10. // @grant none
  11. // @license MIT License
  12. // ==/UserScript==
  13.  
  14. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  15. // Contact Info:
  16. // Steviegt6#9616 (discord)
  17. // Steviegt6 (github)
  18. // https://steviegt6/github.io/ (website)
  19. // https://discordapp.com/invite/tYzEbqX (discord server)
  20. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  21.  
  22. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  23. // Version History:
  24. // -=-=-=-=-
  25. // v1.2.1 comments
  26. // Added comments in code for easier-to-understand source code.
  27. // -=-=-=-=-
  28. // v1.2.0 update
  29. // Added 'P' command (pet)
  30. // Added 'L' command (pet level)
  31. // Setting your coins now automatically reloads
  32. // Setting your XP not automatically reloads
  33. // -=-=-=-=-
  34. // -=-=-=-=-
  35. // v1.1.5 patch
  36. // XP patch 2.0
  37. // -=-=-=-=-
  38. // v1.1.4 patch
  39. // XP patch
  40. // -=-=-=-=-
  41. // v1.1.3 patch
  42. // Patch
  43. // -=-=-=-=-
  44. // v1.1.2 qol/patch
  45. // Small qol tweaks
  46. // Fixed skin selection bugs
  47. // You're allowed to view the skisn menu again
  48. // -=-=-=-=-
  49. // v1.1.1 patch
  50. // Small bug fixes
  51. // -=-=-=-=-
  52. // v1.1.0 update
  53. // Fixed many bugs.
  54. // -=-=-=-=-
  55. // v1.0.0 release
  56. // Initial release. Buggy.
  57. // -=-=-=-=-
  58. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  59.  
  60. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  61. // Guide:
  62. // Press 'O' to set your coins to any value you want!
  63. // Press 'P' to change your pet!
  64. // Press 'C' to change your character!
  65. // Press 'I' to change your island!
  66. // Press 'X' to set your XP to any value you want!
  67. // Press 'L' to set your pet's level!
  68. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  69.  
  70. showCheats(); //Cheat function to display controls
  71.  
  72. document.title = "*HACKED* YoHoHo.io - pirate battle royale io game"; //Changes title name
  73.  
  74. document.addEventListener('keydown', cheats, false); //Checks for when you press a key
  75.  
  76. function showCheats() //Show cheats in side control area
  77. {
  78. var box = document.getElementById("desktop-controls"); //Control box
  79. var controls = document.createElement("div"); //New div
  80. controls.className = "title2"; //Class name
  81. controls.id = "hackids"; //ID
  82. var hacks = document.getElementById("hackids"); //ID name
  83. var hackselement = document.createElement("div"); //New div
  84. 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.)"); //Control text
  85. hackselement.appendChild(hackstextnode); //text node stuff
  86. var controlstextnode = document.createTextNode("Cheats"); //text node
  87. box.appendChild(controls); //append child
  88. box.appendChild(hackselement); //append child
  89. }
  90.  
  91. function cheats(e) //keydown function cheats blah blah blah
  92. {
  93. if (e.keyCode =="79") //O - Coins
  94. {
  95. var a = prompt("What would you like to set your coin coint to?"); //prompt
  96. if(isNaN(a)) //if not a number
  97. {
  98. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  99. }
  100. else
  101. {
  102. localStorage.setItem("coinsOwned", a); //change coing count
  103. document.getElementById("homepage-booty").innerHTML = a; //changes coin count
  104. document.getElementById("skin-popup-booty").innerHTML = a; //changes coin count
  105. alert("Gold set! Reloading...") //reload message
  106. location.reload() //reloads
  107. }
  108. }
  109. else if (e.keyCode == "88") //X - XP
  110. {
  111. var x = prompt("What would you like to set your XP to?"); //prompt
  112. if(isNaN(x)) //if not a number
  113. {
  114. alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?") //error message
  115. }
  116. else if (x >= 13500) //if equal to or greater that 13,500
  117. {
  118. localStorage.setItem("playerXP", 13500); //sets to 13,500
  119. alert("XP set! Reloading...") //reload message
  120. location.reload() //reloads
  121. }
  122. else if (x <= 0) //if less than or equal to 0
  123. {
  124. localStorage.setItem("playerXP", 0); //sets to 0
  125. alert("XP set! Reloading...")
  126. location.reload()
  127. }
  128. else
  129. {
  130. localStorage.setItem("playerXP", x); //etc.
  131. alert("XP set! Reloading...") //etc.
  132. location.reload() //etc.
  133. }
  134. }
  135. else if(e.keyCode == "67") //C - Character
  136. {
  137. var b = prompt("Which character would you like to become? Please pick a number between 1 and 35!") //prompt
  138. if (isNaN(b)) //if not a number
  139. {
  140. alert("Oops! something went wrong! Perhaps entering a number next time will solve the issue?") //error message
  141. }
  142. else if (b < 1 || b > 35) //if less than 1 or greatre than 35
  143. {
  144. alert("Oops! something went wrong! Please choose a number between 1 and 35!") //error message
  145. }
  146. else
  147. {
  148. localStorage.setItem("playerSkin", b); //sets skin
  149. alert("Skin selected! Reloading...") //etc.
  150. location.reload() //etc.
  151. }
  152. }
  153. else if(e.keyCode == "80") //P - Pet
  154. {
  155. var p = prompt("Which character would you like to become? Please pick a number between 1 and 7!") //etc.
  156. if (isNaN(p)) //etc.
  157. {
  158. alert("Oops! something went wrong! Perhaps entering a number next time will solve the issue?") //etc.
  159. }
  160. else if (p < 1 || p > 7) //if less than 1 or greater than 7
  161. {
  162. alert("Oops! something went wrong! Please choose a number between 1 and 7!") //etc.
  163. }
  164. else
  165. {
  166. localStorage.setItem("playerPet", p); //etc.
  167. alert("Pet selected! Reloading...") //etc.
  168. location.reload() //etc.
  169. }
  170. }
  171. else if(e.keyCode == "76") //L - Pet Level
  172. {
  173. var l = prompt("What level would you like your pet to be? Please pick a number between 1 and 14!") //etc.
  174. if (isNaN(l)) //etc.
  175. {
  176. alert("Oops! something went wrong! Perhaps entering a number next time will solve the issue?") //etc.
  177. }
  178. else if (l < 1 || l > 14) //if less than 1 or greater than 14
  179. {
  180. alert("Oops! something went wrong! Please choose a number between 1 and 14!") //etc.
  181. }
  182. else
  183. {
  184. localStorage.setItem("playerPetLevel", l); //etc.
  185. alert("Pet level selected! Reloading...") //etc.
  186. location.reload() //etc.
  187. }
  188. }
  189. else if(e.keyCode == "73") //I - Island
  190. {
  191. 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") //prompt (\n means like break)
  192. if(c == 1) //is exactly equal to one //0,140,700,2100,4400,7600,13500
  193. {
  194. localStorage.setItem("playerXP", 0);
  195. alert("Island set to Tortuga. Reloading...");
  196. location.reload()
  197. }
  198. else if(c == 2)
  199. {
  200. localStorage.setItem("playerXP", 140);
  201. alert("Island set to Beach. Reloading...");
  202. location.reload()
  203. }
  204. else if(c == 3)
  205. {
  206. localStorage.setItem("playerXP", 700);
  207. alert("Island set to Easter. Reloading...");
  208. location.reload()
  209. }
  210. else if(c == 4){
  211. localStorage.setItem("playerXP", 2100);
  212. alert("Island set to Wreck. Reloading...");
  213. location.reload()
  214. }
  215. else if(c == 5){
  216. localStorage.setItem("playerXP", 4400);
  217. alert("Island set to Aztec. Reloading...");
  218. location.reload()
  219. }
  220. else if(c == 6){
  221. localStorage.setItem("playerXP", 7600);
  222. alert("Island set to Volcano. Reloading...");
  223. location.reload()
  224. }
  225. else if(c == 7){
  226. localStorage.setItem("playerXP", 13500);
  227. alert("Island set to Volcano. Reloading...");
  228. location.reload()
  229. }
  230. else if(c != (1 || 2 || 3 || 4 || 5 || 6 || 7)){
  231. alert("Oops! Something went wrong! Please enter a number between 1 and 7!");
  232. location.reload()
  233. }
  234. }
  235. }

QingJ © 2025

镜像随时可能失效,请加Q群300939539或关注我们的公众号极客氢云获取最新地址