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.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. // Guide:
  14. // Press 'O' to set your coins to any value you want!
  15. // Press 'P' to change your character! (Buggy)
  16. // Press 'I' to change your island!
  17. // Press 'X' to set your XP to any value you want! (Buggy)
  18. // =-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+-=-=-=-=-=-=-=-=-=-=-
  19.  
  20. showCheats();
  21. overrideSkin();
  22.  
  23.  
  24. document.title = "*HACKED* YoHoHo.io - pirate battle royale io game";
  25.  
  26. document.addEventListener('keydown', cheats, false);
  27.  
  28. function showCheats()
  29. {
  30. var box = document.getElementById("desktop-controls");
  31. var controls = document.createElement("div");
  32. controls.className = "title2";
  33. controls.id = "hackids";
  34. var hacks = document.getElementById("hackids");
  35. var hackselement = document.createElement("div");
  36. 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.)");
  37. hackselement.appendChild(hackstextnode);
  38. var controlstextnode = document.createTextNode("Cheats");
  39. box.appendChild(controls);
  40. box.appendChild(hackselement);
  41. }
  42.  
  43. function cheats(e)
  44. {
  45. if (e.keyCode =="79") //O - Coins
  46. {
  47. var a = prompt("What would you like to set your coin coint to?");
  48. if(isNaN(a))
  49. {
  50. document.alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  51. }
  52. else
  53. {
  54. localStorage.setItem("coinsOwned", a);
  55. document.getElementById("homepage-booty").innerHTML = a;
  56. document.getElementById("skin-popup-booty").innerHTML = a;
  57. }
  58. }
  59. else
  60. if (e.keyCode =="88") //X - XP
  61. {
  62. var x = prompt("What would you like to set your XP to?");
  63. if(isNaN(a))
  64. {
  65. document.alert("Oops! Something went wrong! Perhaps entering a number next time will solve the issue?")
  66. }
  67. else
  68. {
  69. localStorage.setItem("playerXP", a);
  70. document.getElementById("homepage-booty").innerHTML = a;
  71. document.getElementById("skin-popup-booty").innerHTML = a;
  72. }
  73. }
  74. else if(e.keyCode == "80") //P - Character
  75. {
  76. var b = prompt("Which character would you like to become? Please pick a number between 1 and 45!")
  77. if (isNaN(b))
  78. {
  79. document.alert("Oops! something went wrong! Perhaps enterign a number next time will solve the issue?")
  80. }
  81. else if (b < 1 || b > 45)
  82. {
  83. document.alert("Oops! something went wrong! Please choose a number between 1 and 45!")
  84. }
  85. else if (b != null || b != undefined || b!= "")
  86. {
  87. localStorage.setItem("playerSkin", b);
  88. document.alert("Please reload the page the enable the skin you have chosen!")
  89. }
  90. }
  91. else if(e.keyCode == "73") //I - Island
  92. {
  93. 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")
  94. if(c == 1) ////0,140,700,2100,4400,7600,13500
  95. {
  96. localStorage.setItem("playerXP", 0);
  97. document.alert("Island set to Tortuga. Please reload.");
  98. }
  99. else if(c == 2)
  100. {
  101. localStorage.setItem("playerXP", 140);
  102. document.alert("Island set to Beach. Please reload.");
  103. }
  104. else if(c == 3)
  105. {
  106. localStorage.setItem("playerXP", 700);
  107. document.alert("Island set to Easter. Please reload.");
  108. }
  109. else if(c == 4){
  110. localStorage.setItem("playerXP", 2100);
  111. document.alert("Island set to Wreck. Please reload.");
  112. }
  113. else if(c == 5){
  114. localStorage.setItem("playerXP", 4400);
  115. document.alert("Island set to Aztec. Please reload.");
  116. }
  117. else if(c == 6){
  118. localStorage.setItem("playerXP", 7600);
  119. document.alert("Island set to Volcano. Please reload.");
  120. }
  121. else if(c == 7){
  122. localStorage.setItem("playerXP", 13500);
  123. document.alert("Island set to Volcano. Please reload.");
  124. }
  125. else if(c != (1 || 2 || 3 || 4 || 5 || 6 || 7)){
  126. document.alert("Oops! Something went wrong! Please enter a number between 1 and 7!");
  127. }
  128. }
  129. }
  130.  
  131. console.log("b");
  132.  
  133. function overrideSkin()
  134. {
  135. let ez = document.getElementById("skin-button");
  136. ez.onclick = function()
  137. {
  138. yohoho.chooseSkin();
  139. let a = parseInt(localStorage.getItem("coinsOwned"));
  140. document.getElementById("skin-popup-booty").innerHTML = a;
  141. }
  142. }