Evoworld.io plotri

Evoworld.io cheat

// ==UserScript==
// @name         Evoworld.io plotri
// @namespace    http://tampermonkey.net/
// @version      0.2
// @description  Evoworld.io cheat
// @author       You
// @license      MIT
// @match        https://evoworld.io/
// @icon         https://www.google.com/s2/favicons?sz=64&domain=evoworld.io
// @grant        none
// ==/UserScript==

(function() {
let overlayHTML = `
<div id="cheat" style="z-index: 10;position: absolute;top: 350px;left: 7px;transition: 0.5s;border: 5px solid black;">
Basic cheats:
<br><input type="checkbox" id="ir">Instant respawn</br>
<input type="checkbox" id="sm">Smooth movement</br>
<input type="checkbox" id="lht">Low/normal hp table</br>
<input type="checkbox" id="ht">show hp</br>
<input type="checkbox" id="eh">Emoji spam</br>
<button id="hj">Holding jump (key e)</button><br>
Go to:<br>
<input type="checkbox" id="gts">Go to swamp</br>
<input type="checkbox" id="gtd">Go to desert</br>
<input type="checkbox" id="gtm">Go to middle</br>
Exp:<br>
<input type="checkbox" id="eb3">Exp bonus 30%</br>
Canvas size:<br>
<button id="dscs">Disable setCanvasSize</button></br>
Canvas height<input type="range"  min="1" max="5100" value="1" id="CanvasSizeX"><br>
Canvas width<input type="range"  min="1" max="5100" value="1" id="CanvasSizeY"></br>
</div>
<div id="lowhptable" style="opacity: 0;">
<h2 style="background-color: red;">ㅤㅤLOW HEALTH!</h2>
</div>
<div id="hptable" style="opacity: 0;">
</div>
<div id="normalhptable" style="opacity: 0;">
<h2 style="background-color: green;">ㅤ NORMAL HEALTH</h2>
</div>
<style>
#lowhptable {
    top: 750px;
    left: 7px;
    position: absolute;
    }
#normalhptable {
    top: 750px;
    left: 7px;
    position: absolute;
    }
#hptable {
    top: 450px;
    left: 900px;
    position: absolute;
    }
.button {
  height: 75px;
  background-color: white;
}
button:hover {
background-color: gray;
}
</style>
`
function get(x){ return document.getElementById(x); };

let overlay = document.createElement("div");
    overlay.innerHTML = overlayHTML;
    document.body.appendChild(overlay);
      document.body.appendChild(overlay);
    document.addEventListener('keydown', (event) => {if (event.keyCode == 89) {
    if(document.getElementById("cheat").style.opacity == 1) {
    document.getElementById("cheat").style.opacity = 0;
    }
        else {document.getElementById("cheat").style.opacity = 1;}}})
     alert('Open/close menu on y')

    document.getElementById('CanvasSizeX').oninput = function() {
    game.canvas.width = this.value
    }
    document.getElementById('CanvasSizeY').oninput = function() {
    game.canvas.height = this.value
    }
    setInterval(function(){if(document.getElementById('ir').checked == true){if(imDead == true){playAgain()}}
    if(document.getElementById('gts').checked == true){game.camera.position = {x: 32120.979428936298, y: 2320.449999981}}
    if(document.getElementById('gtd').checked == true){game.camera.position = {x: 81924.5164619628, y: 2320.449999984}}
    if(document.getElementById('eh').checked == true){sendEmote(1);}
    if(document.getElementById('ht').checked == true){document.getElementById('hptable').innerHTML = game.me.hp}
    if(document.getElementById('sm').checked == true){game.maxInterpolateDistanceTeleport = 3000}else{game.maxInterpolateDistanceTeleport = 300}
    if(document.getElementById('gtm').checked == true){game.camera.position = {x: 54778.322855249105, y: 2358.94311498326}}
    if(document.getElementById('lht').checked == true){if(game.me.hp <= 20){document.getElementById('lowhptable').style.opacity = 1;}else{document.getElementById('lowhptable').style.opacity = 0;}
    if(game.me.hp >= 20){document.getElementById('normalhptable').style.opacity = 1;}else{document.getElementById('normalhptable').style.opacity = 0;};}
    if(document.getElementById('eb3').checked == true){startBonus = true}else{startBonus = false}
    })
    document.getElementById('hj').addEventListener('click', function() {
    document.addEventListener('keydown', (event) => {if (event.key == 'e') {gameServer.emit(3)()}})
    })
    document.getElementById('dscs').addEventListener('click', function() {
    game.setCanvasSize = function(){}
    })
    document.getElementById('lht').addEventListener('click', function() {
    document.getElementById('lowhptable').style.opacity = 0;
    document.getElementById('normalhptable').style.opacity = 0;
    })
    document.getElementById('ht').addEventListener('click', function() {
    if(document.getElementById('hptable').style.opacity == 0){
        document.getElementById('hptable').style.opacity = 1
    }
        else{
            document.getElementById('hptable').style.opacity = 0
            }
    })
 }
)();