Better than other zor hax
当前为
// ==UserScript==
// @name zorHax vBetter
// @namespace http://tampermonkey.net/
// @version 2.3
// @description Better than other zor hax
// @author You
// @match *://zorb.io/*
// @grant none
// ==/UserScript==
(function() {
'use strict';
// window.isSpeedDetect=false;
window.addEventListener('load',function(){
window.console=Raven._originalConsoleMethods;
window.oldConsoleLog=window.console.log;
window.console.log=function(){
if([...arguments].join(" ")=="Game started!")window.scanForCurrentPlayer();
// if([...arguments].join(" ")=="WARNING! You are speeding!")window.isSpeedDetect=true;
window.oldConsoleLog(...arguments);
};
window.console.log=window.console.log.bind(window.oldConsole);
setInterval(()=>{
ZOR.UI.engine.set("player_color",Math.floor(Math.random()*26));
},1000);
window.currentPlayer=function(){return null;};
// var waitUntilSpeedAgainTimeout=-1;
setInterval(()=>{
if(window.currentPlayer()==null)return;
window.currentPlayer().model.abilities.speed_boost.active_duration=0;
window.currentPlayer().model.abilities.speed_boost.cooldown_delay=0;
if(hacks.grow)window.currentPlayer().grow(1);
// if(window.isSpeedDetect&&waitUntilSpeedAgainTimeout==-1)waitUntilSpeedAgainTimeout=setTimeout(()=>{window.isSpeedDetect=false;waitUntilSpeedAgainTimeout=-1;},2500);
// window.currentPlayer().model.abilities.speed_boost.active=!window.isSpeedDetect;
},0);
},false);
var hacks={grow:false},keyhandler=function(e){
if(window.currentPlayer()==null)return;
if(e.type.endsWith("n")){
//key down
switch(e.key){
case "E":
//grow
hacks.grow=true;
break;
}
}else{
//key up
switch(e.key){
case "E":
//grow
hacks.grow=false;
break;
}
}
};
window.addEventListener("keydown",keyhandler,false);
window.addEventListener("keyup",keyhandler,false);
window.scanForCurrentPlayer=function(){
Object.keys(ZOR.Game.players).forEach(p=>{
if(typeof ZOR.Game.players[p]!="undefined"){
if(ZOR.Game.players[p].is_current_player){
window.currentPlayer=function(){return ZOR.Game.players[p];};
window.currentPlayer().model.abilities.speed_boost.isReady=function(){return true;};
window.currentPlayer().model.abilities.speed_boost.min_scale=0;
//window.currentPlayer().getSpeed=function(){return window.currentPlayer().model.getSpeed()*1.75;};
}
console.log(ZOR.Game.players[p]);
}
});
}
})();