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