Advertisement
Guest User

Untitled

a guest
Jun 19th, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. // ==UserScript==
  2. // @name         mario
  3. // @version      0.1
  4. // @description  no obfuscator in hte world is going to stop me
  5. // @author       Zoe
  6. // @match        http://www.infernoplus.com/royale/
  7. // @grant        none
  8. // ==/UserScript==
  9. const display_debug = false
  10. // todo: dont use the fuckin _0x and find the offsets yourself, fool
  11. var _0x1_step = _0x39dc67.prototype.step;
  12. $(document.body).append('<div class="link-w" '+(display_debug?'':'style="display:none" ')+ 'id="debuginfo"><span id="marioPos"></span> | <span id="mousePos"></span></div>')
  13. document.querySelector('#debuginfo').style.color="white"
  14. document.querySelector('#debuginfo').style.fontFamily="monospace"
  15.  
  16. var yCorrect = (x)=>(16.1 - (0.0226389*x))
  17. var debuginfo = {
  18.     marioPos: document.querySelector('#marioPos'),
  19.     mousePos: document.querySelector('#mousePos')
  20. }
  21. var prev = {x:0,y:0,reset:true}
  22. var blinkTo = {x:0,y:0,tp:false}
  23. _0x39dc67['prototype']['damage']=function(a){}
  24. _0x39dc67.prototype.step = function () {
  25.     if (this['game']['getPlayer']() === this) {
  26.         debuginfo.mousePos.textContent=`MOUSE [x:${_0x298b66.prototype.mouse.pos.x}, y:${_0x298b66.prototype.mouse.pos.y} (${yCorrect(_0x298b66.prototype.mouse.pos.y)})]`
  27.         debuginfo.marioPos.textContent=`MARIO [x:${this.pos.x}, y:${this.pos.y}]`
  28.         if(_0x298b66.prototype.mouse.lmb) {
  29.             this['pos']['x'] = (_0x298b66.prototype.mouse.pos.x/2)-400
  30.             this['pos']['y'] = yCorrect(_0x298b66.prototype.mouse.pos.y)
  31.         }
  32.         if(blinkTo.tp==true){
  33.             if(prev.reset){prev.x=this['pos'].x;prev.y=this['pos'].y;prev.reset = false}
  34.             this['pos']['x'] = blinkTo.x
  35.             this['pos']['y'] = blinkTo.y
  36.             blinkTo.tp = false
  37.         } else if(!prev.reset) {
  38.             this.pos.x = prev.x
  39.             this.pos.y = prev.y
  40.             prev.reset = true
  41.         }
  42.     }
  43.     return _0x1_step.bind(this)();
  44. }
  45. var _star_physics = _0x2c0d20['prototype']['physics']
  46. _0x2c0d20.prototype.physics = function(){
  47.     blinkTo.x = this.pos.x
  48.     blinkTo.y = this.pos.y
  49.     blinkTo.tp = true
  50.     return _star_physics.bind(this)();
  51. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement