-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbeta 1.0.js
More file actions
42 lines (39 loc) · 1.37 KB
/
beta 1.0.js
File metadata and controls
42 lines (39 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// ==UserScript==
// @name WASD tp powered by ARCH
// @namespace http://tampermonkey.net/
// @version 2024-10-09
// @description try to take over the world!
// @author You
// @match http://brofist.io/beta/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=brofist.io
// @grant none
// ==/UserScript==
var c = Function.prototype.call;
Function.prototype.call = function(...a) {
a[0]?.[0]?._name == 'Ref' && cinop(a[0][0]._components[0]?.mapManager);
return c.apply(this, a);
};
function cinop(temp1) {
document.body.onkeydown = (event) => {
if (event.key.toLowerCase() == 'a') {
temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x-300,
temp1.characters[0].node.getPosition().y,0
)
}
if (event.key.toLowerCase() == 'w') {
temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x,
temp1.characters[0].node.getPosition().y+300,0
)
}
if (event.key.toLowerCase() == 'd') {
temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x+300,
temp1.characters[0].node.getPosition().y,0
)
}
if (event.key.toLowerCase() == 's') {
temp1.characters[0].node.setPosition(temp1.characters[0].node.getPosition().x,
temp1.characters[0].node.getPosition().y-300,0
)
}
}
}