Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ==UserScript==
- // @name mario
- // @version 0.1
- // @description no obfuscator in hte world is going to stop me
- // @author Zoe
- // @match http://www.infernoplus.com/royale/
- // @grant none
- // ==/UserScript==
- const display_debug = false
- // todo: dont use the fuckin _0x and find the offsets yourself, fool
- var _0x1_step = _0x39dc67.prototype.step;
- $(document.body).append('<div class="link-w" '+(display_debug?'':'style="display:none" ')+ 'id="debuginfo"><span id="marioPos"></span> | <span id="mousePos"></span></div>')
- document.querySelector('#debuginfo').style.color="white"
- document.querySelector('#debuginfo').style.fontFamily="monospace"
- var yCorrect = (x)=>(16.1 - (0.0226389*x))
- var debuginfo = {
- marioPos: document.querySelector('#marioPos'),
- mousePos: document.querySelector('#mousePos')
- }
- var prev = {x:0,y:0,reset:true}
- var blinkTo = {x:0,y:0,tp:false}
- _0x39dc67['prototype']['damage']=function(a){}
- _0x39dc67.prototype.step = function () {
- if (this['game']['getPlayer']() === this) {
- debuginfo.mousePos.textContent=`MOUSE [x:${_0x298b66.prototype.mouse.pos.x}, y:${_0x298b66.prototype.mouse.pos.y} (${yCorrect(_0x298b66.prototype.mouse.pos.y)})]`
- debuginfo.marioPos.textContent=`MARIO [x:${this.pos.x}, y:${this.pos.y}]`
- if(_0x298b66.prototype.mouse.lmb) {
- this['pos']['x'] = (_0x298b66.prototype.mouse.pos.x/2)-400
- this['pos']['y'] = yCorrect(_0x298b66.prototype.mouse.pos.y)
- }
- if(blinkTo.tp==true){
- if(prev.reset){prev.x=this['pos'].x;prev.y=this['pos'].y;prev.reset = false}
- this['pos']['x'] = blinkTo.x
- this['pos']['y'] = blinkTo.y
- blinkTo.tp = false
- } else if(!prev.reset) {
- this.pos.x = prev.x
- this.pos.y = prev.y
- prev.reset = true
- }
- }
- return _0x1_step.bind(this)();
- }
- var _star_physics = _0x2c0d20['prototype']['physics']
- _0x2c0d20.prototype.physics = function(){
- blinkTo.x = this.pos.x
- blinkTo.y = this.pos.y
- blinkTo.tp = true
- return _star_physics.bind(this)();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement