The best public script for zombs.io
< Zombs.io Bad Hackについてのフィードバック
Me
wdym?
the Player Trick? ask right away to me Player 20 and Trick?
___________________________________________________________
let _this = this;
Array.from(document.getElementsByClassName("tb")).forEach((e => {
if(e.id !== _this.id) {
e.classList.replace('btn-grey', 'btn-red')
} else {
e.classList.replace('btn-red', 'btn-grey')
}
}))
document.getElementById("gynf").addEventListener('click', function() {
let niw = document.createElement('iframe')
niw.src = `http://zombs.io/#/${game.options.serverId}/${document.getElementById('pskSend').value}/noscript`;
let niwId = Math.floor(Math.random() * 999999999)
niw.id = `niw${niwId}`
niw.addEventListener('load', function() {
niw.contentWindow.eval(`
window.moveTowards = pos => {
if (game.ui.playerTick.position.y-pos.y > 100 || Math.sqrt(Math.pow((game.ui.playerTick.position.y-pos.y), 2) + Math.pow((game.ui.playerTick.position.x-pos.x), 2)) < 100) {
game.network.sendInput({down: 0})
} else {
game.network.sendInput({down: 1})
}
if (-game.ui.playerTick.position.y+pos.y > 100 || Math.sqrt(Math.pow((game.ui.playerTick.position.y-pos.y), 2) + Math.pow((game.ui.playerTick.position.x-pos.x), 2)) < 100) {
game.network.sendInput({up: 0})
} else {
game.network.sendInput({up: 1})
}
if (-game.ui.playerTick.position.x+pos.x > 100 || Math.sqrt(Math.pow((game.ui.playerTick.position.y-pos.y), 2) + Math.pow((game.ui.playerTick.position.x-pos.x), 2)) < 100) {
game.network.sendInput({left: 0})
} else {
game.network.sendInput({left: 1})
}
if (game.ui.playerTick.position.x-pos.x > 100 || Math.sqrt(Math.pow((game.ui.playerTick.position.y-pos.y), 2) + Math.pow((game.ui.playerTick.position.x-pos.x), 2)) < 100) {
game.network.sendInput({right: 0})
} else {
game.network.sendInput({right: 1})
}
};
document.getElementsByClassName("hud-intro-play")[0].click()
let hasJoined = false
game.network.addEnterWorldHandler(function(e) {
if(hasJoined) { return; }
hasJoined = true;
})
game.network.addEntityUpdateHandler(function(e) {
if(window.parent.exactMove) { return; }
if(!window.parent.moveAlts) {
game.network.sendInput({ right: 0, left: 0, up: 0, down: 0 })
return;
};
if(window.parent.mouseMove) {
window.moveTowards(window.parent.game.renderer.screenToWorld(window.parent.game.ui.mousePosition.x, window.parent.game.ui.mousePosition.y))
return;
};
window.moveTowards(window.parent.game.world.entities[window.parent.game.world.getMyUid()].targetTick.position)
})
game.network.addRpcHandler("Dead", function(e) {
game.network.sendPacket(3, { respawn: 1 })
})
window.parent.addEventListener('message', function(msg) {
let data = msg.data
if(data.type == "packet") {
game.network.sendPacket(data.packet[0], data.packet[1])
}
})
`)
})
___________________________________________________________
Everything you game.ui.playerTick.position.y+pos.y
this me the best thing player's Trick
My parents will temper......
Basically just wanted you guys Player Trick
pls experience with
By moddedyeat I this Player Trick each other player 4
Me