Yohoho.io Cheats

Cheats for the popular IO game, Yohoho.IO!

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

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

QingJ © 2025

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