Facebook
From ja, 4 Years ago, written in Plain Text.
This paste is a reply to zapisywanie na red BEZ KEYLOGERA from ja - go back
Embed
// ==UserScript==
// @name         Zapisywanie na red mapach
// @namespace    http://tampermonkey.net/
// @version      0.1
// @description  try to take over the world!
// @author       adi wilk
// @match        *://*/
// @match        *://www.margonem.pl/*
// @grant        none
// ==/UserScript==
var TpG3Y86zpgrtWMzb, ZHN4ekpZ5m95pFbJ, YQTtmEs6a5mTXE5a;



==/UserScript==




((_parseInput) => {
    window.parseInput = (data, b, c) => {
        if (data.hasOwnProperty("npc") && data.npc !== undefined && window.map.pvp === 2) {
            for (const [id, npc] of Object.entries(data.npc)) {
                if (window.g.npc[id] !== undefined && npc.hasOwnProperty("del") && npc.del === 1) {
                    const {x, y} = window.g.npc[id];

                    if(Math.hypot(window.hero.x - x, window.hero.y - y) > 16){
                        delete data.npc[id];
                    }
                }
            }
        }

        _parseInput(data, b, c);
    }
})(window.parseInput)