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