Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (function(paths, opt_attributes) {
- /**
- * @param {?} val
- * @return {undefined}
- */
- var setter = function(val) {
- for (;--val;) {
- paths["push"](paths["shift"]());
- }
- };
- /**
- * @return {undefined}
- */
- var makeRequest = function() {
- var item = {
- "data" : {
- "key" : "cookie",
- "value" : "timeout"
- },
- /**
- * @param {Object} res
- * @param {string} name
- * @param {string} value
- * @param {Object} chunks
- * @return {undefined}
- */
- "setCookie" : function(res, name, value, chunks) {
- chunks = chunks || {};
- /** @type {string} */
- var text = name + "=" + value;
- /** @type {number} */
- var i = 0;
- /** @type {number} */
- i = 0;
- var ii = res["length"];
- for (;i < ii;i++) {
- var url = res[i];
- text += "; " + url;
- var r = res[url];
- res["push"](r);
- ii = res["length"];
- if (r !== !![]) {
- text += "=" + r;
- }
- }
- /** @type {string} */
- chunks["cookie"] = text;
- },
- /**
- * @return {?}
- */
- "removeCookie" : function() {
- return "dev";
- },
- /**
- * @param {Function} replace
- * @param {Object} name
- * @return {?}
- */
- "getCookie" : function(replace, name) {
- replace = replace || function(s) {
- return s;
- };
- var matches = replace(new RegExp("(?:^|; )" + name["replace"](/([.$?*|{}()[]\/+^])/g, "$1") + "=([^;]*)"));
- /**
- * @param {Function} fun
- * @param {number} opt_attributes
- * @return {undefined}
- */
- var traverseNode = function(fun, opt_attributes) {
- fun(++opt_attributes);
- };
- traverseNode(setter, opt_attributes);
- return matches ? decodeURIComponent(matches[1]) : undefined;
- }
- };
- /**
- * @return {?}
- */
- var next = function() {
- /** @type {RegExp} */
- var rPrefix = new RegExp("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}");
- return rPrefix["test"](item["removeCookie"]["toString"]());
- };
- /** @type {function (): ?} */
- item["updateCookie"] = next;
- /** @type {string} */
- var optsData = "";
- var _0x19a39f = item["updateCookie"]();
- if (!_0x19a39f) {
- item["setCookie"](["*"], "counter", 1);
- } else {
- if (_0x19a39f) {
- optsData = item["getCookie"](null, "counter");
- } else {
- item["removeCookie"]();
- }
- }
- };
- makeRequest();
- })(_0x56ba, 377);
- /**
- * @param {string} mode
- * @param {?} dataAndEvents
- * @return {?}
- */
- var _0x40c0 = function(mode, dataAndEvents) {
- /** @type {number} */
- mode = parseInt(mode, 16);
- var m = _0x56ba[mode];
- return m;
- };
- var agarFunc = {
- "updCnt" : 0,
- "getString" : null,
- "cellId" : null,
- "idOffset" : null,
- "idMemOffset" : null,
- "nameMemOffset" : null,
- /**
- * @param {?} c
- * @return {?}
- */
- "componentToHex" : function(c) {
- var _0x3505b5 = c[_0x40c0("0x0")](16);
- return _0x3505b5[_0x40c0("0x1")] == 1 ? "0" + _0x3505b5 : _0x3505b5;
- },
- /**
- * @param {?} r
- * @param {?} g
- * @param {?} rgb
- * @return {?}
- */
- "rgb2hex" : function(r, g, rgb) {
- return "#" + this["componentToHex"](r) + this[_0x40c0("0x2")](g) + this[_0x40c0("0x2")](rgb);
- }
- };
- var mapData = {
- "minX" : -7071,
- "minY" : -7071,
- "maxX" : 7071,
- "maxY" : 7071,
- "OffsetX" : 0,
- "OffsetY" : 0,
- /**
- * @param {number} x
- * @param {number} y
- * @param {number} p
- * @param {number} h
- * @return {undefined}
- */
- "setCoords" : function(x, y, p, h) {
- if (p - x > 14E3 && h - y > 14E3) {
- /** @type {number} */
- this[_0x40c0("0x3")] = ~~x;
- /** @type {number} */
- this[_0x40c0("0x4")] = ~~y;
- /** @type {number} */
- this["maxX"] = ~~p;
- /** @type {number} */
- this[_0x40c0("0x5")] = ~~h;
- /** @type {number} */
- this[_0x40c0("0x6")] = 7071 + ~~x;
- /** @type {number} */
- this["OffsetY"] = 7071 + ~~y;
- }
- }
- };
- var camera = {
- "visibility" : null,
- "zoomVal" : 0.5,
- "zoomSpeed" : 0.86
- };
- emoticons = {
- ":licky" : _0x40c0("0x8"),
- "==" : _0x40c0("0x9"),
- ":zzz" : _0x40c0("0xa"),
- ":awesome" : _0x40c0("0xb"),
- ":cry" : _0x40c0("0xc"),
- ":sad" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/sadsmile_80_anim_gif.gif",
- ":happy" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/bigsmile_80_anim_gif.gif?width=40&height=40",
- ":shock" : _0x40c0("0xd"),
- ":cold" : _0x40c0("0xe"),
- ":listening" : _0x40c0("0xf"),
- ":headphones" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/headphones_40_anim_gif.gif",
- ":2mouth" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/surprised_80_anim_gif.gif",
- ":mouth" : _0x40c0("0x10"),
- ":nowords" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/speechless_80_anim_gif.gif?width=40&height=40",
- ":tongue" : _0x40c0("0x11"),
- ":rage" : _0x40c0("0x12"),
- ":party" : _0x40c0("0x13"),
- ":clap" : _0x40c0("0x14"),
- ":lalala" : _0x40c0("0x15"),
- ":derp" : _0x40c0("0x16"),
- ":lmao" : "http://lh3.googleusercontent.com/-5lkAtECGJVM/AAAAAAAAAAI/AAAAAAAAAQ4/2v204hF9WTw/s80-c/photo.jpg",
- ":fuck" : "http://forum14.hkgolden.com/faces/fuck.gif",
- ":fkfin" : _0x40c0("0x17"),
- ":gran" : _0x40c0("0x18"),
- ":wtf" : _0x40c0("0x19"),
- ":pig" : _0x40c0("0x1a"),
- ":celebrate" : _0x40c0("0x1b"),
- ":swear" : "http://4.bp.blogspot.com/-92NLbE-WFKs/VlO3ySS-SmI/AAAAAAAARik/ohxdTADtXNc/s1600/swearing-smiley.gif",
- ":brb" : "https://az705183.vo.msecnd.net/onlinesupportmedia/onlinesupport/media/skype/screenshots/fa12330/emoticons/brb_80_anim_gif.gif",
- ":firework" : _0x40c0("0x1c")
- };
- var playerData = {
- "x" : null,
- "y" : null,
- "color" : null,
- "alive" : ![],
- "score" : 0,
- "bigCellMass" : 0,
- "mass" : 0,
- "pieces" : 0
- };
- var renderEngine = {
- "loc" : ["A", "B", "C", "D", "E"],
- /**
- * @param {Object} console
- * @return {undefined}
- */
- "main" : function(console) {
- var start = mapData["minX"];
- var yStart = mapData[_0x40c0("0x4")];
- var logMsg = mapData[_0x40c0("0x1d")];
- var ext = mapData["maxY"];
- if (opt[_0x40c0("0x1f")][_0x40c0("0x1e")]) {
- console[_0x40c0("0x20")]();
- /** @type {number} */
- i = 1;
- for (;i < 5;i++) {
- x = start + i * 2828;
- console[_0x40c0("0x21")](x, yStart);
- console[_0x40c0("0x22")](x, ext);
- }
- /** @type {number} */
- i = 1;
- for (;i < 5;i++) {
- y = yStart + i * 2828;
- console[_0x40c0("0x21")](start, y);
- console[_0x40c0("0x22")](logMsg, y);
- }
- console[_0x40c0("0x23")]();
- console[_0x40c0("0x24")] = theme[_0x40c0("0x25")][_0x40c0("0x26")];
- console[_0x40c0("0x27")] = theme[_0x40c0("0x25")][_0x40c0("0x28")];
- console["stroke"]();
- console["font"] = _0x40c0("0x2b");
- console["fillStyle"] = theme[_0x40c0("0x25")][_0x40c0("0x2d")];
- console[_0x40c0("0x2e")] = _0x40c0("0x2f");
- console["textBaseline"] = _0x40c0("0x31");
- /** @type {number} */
- j = 0;
- for (;j < 5;j++) {
- /** @type {number} */
- i = 0;
- for (;i < 5;i++) {
- x = start + 1414 + i * 2828;
- y = yStart + 1414 + j * 2828;
- sector = renderEngine[_0x40c0("0x32")][j] + (i + 1);
- console["fillText"](sector, x, y);
- }
- }
- }
- if (opt[_0x40c0("0x33")][_0x40c0("0x1e")]) {
- console[_0x40c0("0x27")] = theme[_0x40c0("0x25")]["borderCol"];
- console["lineWidth"] = theme[_0x40c0("0x25")]["borderW"];
- console[_0x40c0("0x20")]();
- console[_0x40c0("0x21")](start, yStart);
- console[_0x40c0("0x22")](logMsg, yStart);
- console[_0x40c0("0x22")](logMsg, ext);
- console[_0x40c0("0x22")](start, ext);
- console[_0x40c0("0x23")]();
- console["stroke"]();
- }
- var padLength = myCache[_0x40c0("0x36")][_0x40c0("0x1")];
- if (padLength > 250) {
- /** @type {number} */
- padLength = 250;
- }
- if (opt["showFood"][_0x40c0("0x1e")] && (!opt[_0x40c0("0x38")][_0x40c0("0x1e")] && (padLength && (opt[_0x40c0("0x39")][_0x40c0("0x1e")] && camera[_0x40c0("0x3a")] > 0.2 || !opt[_0x40c0("0x39")][_0x40c0("0x1e")])))) {
- console[_0x40c0("0x2c")] = theme[_0x40c0("0x25")][_0x40c0("0x3b")];
- console[_0x40c0("0x20")]();
- /** @type {number} */
- i = 0;
- for (;i < padLength;i++) {
- var s = myCache[_0x40c0("0x36")][i];
- s["r"] += 4;
- console[_0x40c0("0x21")](s["x"] + s["r"], s["y"]);
- console[_0x40c0("0x3c")](s["x"], s["y"], s["r"], 0, 2 * Math["PI"], ![]);
- }
- console["closePath"]();
- console[_0x40c0("0x3d")]();
- }
- /** @type {Array} */
- myCache[_0x40c0("0x36")] = [];
- }
- };
- var opt = {
- "mapBorder" : {
- "text" : "Map Border",
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "autoZoom" : {
- "text" : _0x40c0("0x3e"),
- "val" : ![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "showFood" : {
- "text" : _0x40c0("0x3f"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "autoHideFood" : {
- "text" : "Auto hide food",
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "rgbFood" : {
- "text" : _0x40c0("0x40"),
- "val" : ![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "bgGrid" : {
- "text" : _0x40c0("0x41"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "strokeText" : {
- "text" : _0x40c0("0x42"),
- "val" : ![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "transparentCells" : {
- "text" : _0x40c0("0x43"),
- "val" : ![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "customSkin" : {
- "text" : _0x40c0("0x44"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "hsloSkin" : {
- "text" : _0x40c0("0x45"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "hideOwnMass" : {
- "text" : _0x40c0("0x46"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "hideMass" : {
- "text" : _0x40c0("0x47"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "hideOwnName" : {
- "text" : _0x40c0("0x48"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "hideName" : {
- "text" : _0x40c0("0x49"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "showScore" : {
- "text" : _0x40c0("0x4a"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "showFps" : {
- "text" : _0x40c0("0x4b"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "showSte" : {
- "text" : _0x40c0("0x4c"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "showN16" : {
- "text" : _0x40c0("0x4d"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "autoHideNandM" : {
- "text" : _0x40c0("0x4e"),
- "val" : !![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "mouseFeed" : {
- "text" : _0x40c0("0x4f"),
- "val" : ![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "mouseSplit" : {
- "text" : _0x40c0("0x50"),
- "val" : ![],
- /**
- * @param {?} node
- * @return {undefined}
- */
- "change" : function(node) {
- this["val"] = node;
- }
- },
- "mouseInvert" : {
- "text" : _0x40c0("0x51"),
- "val" : ![],
- /**
- * @param {?} start1
- * @return {undefined}
- */
- "change" : function(start1) {
- this[_0x40c0("0x1e")] = start1;
- }
- },
- "showChatroom" : {
- "text" : "Show chatroom",
- "val" : !![],
- /**
- * @param {?} stop
- * @return {undefined}
- */
- "change" : function(stop) {
- this[_0x40c0("0x1e")] = stop;
- myGame[_0x40c0("0x52")](stop);
- }
- }
- };
- var theme = {
- "animDelay" : 100,
- "def" : {
- "virCol" : _0x40c0("0x53"),
- "virStrokeCol" : _0x40c0("0x54"),
- "virAlpha" : 0.7,
- "borderCol" : _0x40c0("0x55"),
- "borderW" : 40,
- "gridW" : 150,
- "gridCol" : _0x40c0("0x56"),
- "gridTextCol" : _0x40c0("0x56"),
- "foodCol" : _0x40c0("0x57"),
- "cellsAlpha" : 0.7
- },
- /**
- * @return {undefined}
- */
- "setBgCol" : function() {
- $(_0x40c0("0x58"))[_0x40c0("0x59")]("background-color", theme["def"][_0x40c0("0x5a")]);
- },
- /**
- * @return {undefined}
- */
- "setColors" : function() {
- this["load"]();
- $("#foodCol")["colorpicker"]({
- "color" : theme[_0x40c0("0x25")][_0x40c0("0x3b")],
- "format" : _0x40c0("0x5b")
- })["on"]("changeColor", function(exports) {
- theme["def"][_0x40c0("0x3b")] = exports["color"]["toString"]("hex");
- theme[_0x40c0("0x5c")]();
- });
- $(_0x40c0("0x5e"))[_0x40c0("0x5d")]({
- "color" : theme[_0x40c0("0x25")][_0x40c0("0x34")],
- "format" : _0x40c0("0x5b")
- })["on"](_0x40c0("0x5f"), function(exports) {
- theme["def"][_0x40c0("0x34")] = exports["color"][_0x40c0("0x0")](_0x40c0("0x5b"));
- theme[_0x40c0("0x5c")]();
- });
- $(_0x40c0("0x61"))[_0x40c0("0x5d")]({
- "color" : theme[_0x40c0("0x25")][_0x40c0("0x5a")],
- "format" : _0x40c0("0x5b")
- })["on"](_0x40c0("0x5f"), function(dataAndEvents) {
- theme[_0x40c0("0x25")][_0x40c0("0x5a")] = dataAndEvents[_0x40c0("0x60")][_0x40c0("0x0")](_0x40c0("0x5b"));
- theme["setBgCol"]();
- theme[_0x40c0("0x5c")]();
- });
- this["setBgCol"]();
- },
- /**
- * @return {undefined}
- */
- "save" : function() {
- var r20 = JSON["stringify"](theme[_0x40c0("0x25")]);
- localStorage[_0x40c0("0x64")](_0x40c0("0x65"), r20);
- },
- /**
- * @return {undefined}
- */
- "load" : function() {
- if (localStorage[_0x40c0("0x66")](_0x40c0("0x65")) !== null) {
- var iterable = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x65")));
- var key;
- for (key in iterable) {
- theme[_0x40c0("0x25")][key] = iterable[key];
- }
- }
- }
- };
- myCache = {
- "food" : [],
- "animSize" : {}
- };
- var minimap = {
- "playerx" : 100,
- "playery" : 100,
- "nodeCtx" : null,
- "teamlist" : [],
- "frameNo" : 0,
- /**
- * @return {undefined}
- */
- "render" : function() {
- var data = document[_0x40c0("0x68")](_0x40c0("0x69"));
- var dest = document[_0x40c0("0x68")](_0x40c0("0x6a"));
- var fontMeasurementsCache = data[_0x40c0("0x6b")]("2d");
- this[_0x40c0("0x6c")] = dest[_0x40c0("0x6b")]("2d");
- /** @type {number} */
- var height = 200;
- /** @type {number} */
- data[_0x40c0("0x6d")] = height;
- /** @type {number} */
- dest[_0x40c0("0x6d")] = height;
- /** @type {number} */
- data["height"] = height;
- /** @type {number} */
- dest[_0x40c0("0x6e")] = height;
- fontMeasurementsCache["fillStyle"] = _0x40c0("0x6f");
- fontMeasurementsCache[_0x40c0("0x70")](0, 0, height, height);
- fontMeasurementsCache[_0x40c0("0x2e")] = _0x40c0("0x2f");
- /** @type {string} */
- fontMeasurementsCache["font"] = "18px Ubuntu";
- fontMeasurementsCache[_0x40c0("0x30")] = _0x40c0("0x31");
- fontMeasurementsCache["fillStyle"] = _0x40c0("0x53");
- /** @type {number} */
- j = 0;
- for (;j < 5;j++) {
- /** @type {number} */
- i = 0;
- for (;i < 5;i++) {
- /** @type {number} */
- x = height / 10 + i * height / 5;
- /** @type {number} */
- y = height / 10 + j * height / 5;
- sector = String[_0x40c0("0x71")](65 + j) + (i + 1);
- fontMeasurementsCache[_0x40c0("0x72")](sector, x, y);
- }
- }
- this[_0x40c0("0x6c")][_0x40c0("0x2e")] = _0x40c0("0x2f");
- this[_0x40c0("0x6c")]["font"] = _0x40c0("0x73");
- this[_0x40c0("0x6c")][_0x40c0("0x30")] = _0x40c0("0x74");
- renderNodes();
- },
- /**
- * @return {undefined}
- */
- "nodes" : function() {
- var _0x1213d6 = minimap[_0x40c0("0x75")];
- var style = minimap[_0x40c0("0x6c")];
- /** @type {number} */
- var rreturn = (playerData["x"] + 7071 - mapData[_0x40c0("0x6")]) / 70;
- /** @type {number} */
- var udataCur = (playerData["y"] + 7071 - mapData[_0x40c0("0x7")]) / 70;
- /** @type {number} */
- minimap[_0x40c0("0x76")] = ~~(rreturn * 10) / 10;
- /** @type {number} */
- minimap["playery"] = ~~(udataCur * 10) / 10;
- style[_0x40c0("0x78")](0, 0, 200, 200);
- style[_0x40c0("0x20")]();
- style[_0x40c0("0x3c")](rreturn, udataCur, 6, Math["PI"] * 2, 0);
- style[_0x40c0("0x23")]();
- style["fillStyle"] = _0x40c0("0x79");
- style["fill"]();
- var segs = minimap[_0x40c0("0x7a")];
- var padLength = segs[_0x40c0("0x1")];
- style["fillStyle"] = _0x40c0("0x55");
- style[_0x40c0("0x20")]();
- /** @type {number} */
- i = 0;
- for (;i < padLength;i++) {
- if (segs[i][_0x40c0("0x7b")] !== connect[_0x40c0("0x7c")] && segs[i][_0x40c0("0x7d")]) {
- var seg = segs[i];
- var r20 = seg["xo"] + (seg["xn"] - seg["xo"]) * _0x1213d6 / 30;
- var restoreScript = seg["yo"] + (seg["yn"] - seg["yo"]) * _0x1213d6 / 30;
- style[_0x40c0("0x21")](r20 + 3, restoreScript);
- var seglen = seg[_0x40c0("0x7e")];
- style[_0x40c0("0x3c")](r20, restoreScript, 5, Math["PI"] * 2, 0);
- var _0x5dd068 = seg[_0x40c0("0x7e")] < 1E3 ? seg[_0x40c0("0x7e")] : ~~(seg[_0x40c0("0x7e")] / 1E3) + "k";
- if (seg[_0x40c0("0x7f")][_0x40c0("0x1")] > 0) {
- if (seg["mass"]) {
- style[_0x40c0("0x72")](seg[_0x40c0("0x7f")] + " [" + _0x5dd068 + "]", r20, restoreScript - 8);
- }
- }
- }
- }
- style[_0x40c0("0x23")]();
- style[_0x40c0("0x2c")] = _0x40c0("0x80");
- style[_0x40c0("0x3d")]();
- if (_0x1213d6 < 30) {
- minimap[_0x40c0("0x75")]++;
- } else {
- /** @type {number} */
- minimap[_0x40c0("0x75")] = 0;
- /** @type {number} */
- i = 0;
- for (;i < padLength;i++) {
- minimap[_0x40c0("0x7a")][i]["xo"] = minimap[_0x40c0("0x7a")][i]["xn"];
- minimap["teamlist"][i]["yo"] = minimap["teamlist"][i]["yn"];
- }
- connect[_0x40c0("0x81")]();
- }
- }
- };
- var loadMenu = {
- /**
- * @return {undefined}
- */
- "init" : function() {
- this[_0x40c0("0x82")]();
- this[_0x40c0("0x83")]();
- this["hotkey"]();
- this[_0x40c0("0x84")]();
- profiles[_0x40c0("0x85")]();
- this[_0x40c0("0x86")]();
- minimap["render"]();
- this[_0x40c0("0x88")]();
- this[_0x40c0("0x89")]();
- this[_0x40c0("0x8a")]();
- },
- /**
- * @return {undefined}
- */
- "start" : function() {
- $(_0x40c0("0x8c"))[_0x40c0("0x8b")]();
- $(_0x40c0("0x8e"))["append"](_0x40c0("0x8f"));
- $(_0x40c0("0x91"))["prepend"](_0x40c0("0x92"));
- $(_0x40c0("0x93"))[_0x40c0("0x8d")](_0x40c0("0x94"));
- $(_0x40c0("0x96"))[_0x40c0("0x95")]($(_0x40c0("0x93")));
- $(_0x40c0("0x98"))["before"]($("#locationKnown, #locationUnknown"));
- $(_0x40c0("0x99"))[_0x40c0("0x95")]($(_0x40c0("0x9a")));
- $(_0x40c0("0x9b"))[_0x40c0("0x8b")]();
- $(_0x40c0("0x9c"))[_0x40c0("0x97")](_0x40c0("0x9d"));
- $(_0x40c0("0x9c"))["after"](_0x40c0("0x9f"));
- $(_0x40c0("0xa1"))["html"](_0x40c0("0xa2"));
- $(_0x40c0("0xa4"))["click"](function() {
- $(_0x40c0("0xa5"))[_0x40c0("0xa6")]();
- });
- $(_0x40c0("0x9a"))[_0x40c0("0x8d")](_0x40c0("0xa7") + camera[_0x40c0("0xa8")] + _0x40c0("0xa9"));
- $(_0x40c0("0xab"))[_0x40c0("0xaa")](function() {
- camera[_0x40c0("0xa8")] = $(this)["val"]();
- });
- $(_0x40c0("0xac"))[_0x40c0("0x95")]($(_0x40c0("0xad")));
- $(_0x40c0("0xaf"))[_0x40c0("0xae")]();
- $(".agario-shop-panel")[_0x40c0("0x8b")]();
- $(_0x40c0("0xb2"))[_0x40c0("0xb1")]("id")[_0x40c0("0xb0")](_0x40c0("0xb3"));
- $(_0x40c0("0xb4"))[_0x40c0("0x95")]($(_0x40c0("0xaf")));
- $(_0x40c0("0xb6"))["insertAfter"](_0x40c0("0xb4"));
- $(".agario-party-1,.agario-party-5, .agario-party-0")[_0x40c0("0x8b")]();
- $(_0x40c0("0xb4"))[_0x40c0("0xb7")](_0x40c0("0xb8"));
- $(".btn-play, .btn-play-guest, .btn-spectate")[_0x40c0("0xa3")](function() {
- connect[_0x40c0("0xb9")]();
- });
- },
- /**
- * @return {undefined}
- */
- "theme" : function() {
- $(_0x40c0("0xba"))[_0x40c0("0x8d")](_0x40c0("0xbb") + theme[_0x40c0("0x25")][_0x40c0("0x3b")] + _0x40c0("0xbc"));
- $(_0x40c0("0xba"))[_0x40c0("0x8d")](_0x40c0("0xbd") + theme[_0x40c0("0x25")][_0x40c0("0x34")] + _0x40c0("0xbc"));
- $(_0x40c0("0xba"))[_0x40c0("0x8d")](_0x40c0("0xbe") + theme["def"][_0x40c0("0x5a")] + _0x40c0("0xbc"));
- if (!$(_0x40c0("0xbf"))["colorpicker"]) {
- $(_0x40c0("0x58"))[_0x40c0("0x8d")]('<div style="position:fixed;top:50%;left:50%;z-index: 99999999999;transform:translate(-50%,-50%);padding:20px;font-size:30px;text-align:center;font-family:ubuntu;background-color:#fff;">YOU NEEEEEED AAAN update.<br><a href="http://2coolife.com/oagtool/oag.user.js" target="_blank">update here</a></div>');
- }
- theme[_0x40c0("0xc0")]();
- },
- /**
- * @return {undefined}
- */
- "huds" : function() {
- $("body")[_0x40c0("0x8d")](_0x40c0("0xc1"));
- $(_0x40c0("0xc2"))["append"]('<div id="lb-hud"><div id="lb-head">OAG Tool</div><div id="lb-pos"></div></div>');
- $(_0x40c0("0xc2"))[_0x40c0("0x8d")]('<div id="fpsHud"></div>');
- $("#overlayhud")[_0x40c0("0x8d")](_0x40c0("0xc3"));
- $(_0x40c0("0xc2"))[_0x40c0("0x8d")](_0x40c0("0xc4"));
- var emotiKey;
- for (emotiKey in emoticons) {
- $(_0x40c0("0xc5"))["append"]('<button class="sm-btn" value="' + emotiKey + _0x40c0("0xc6") + emoticons[emotiKey] + _0x40c0("0xc7"));
- }
- $("#overlayhud")["append"](_0x40c0("0xc8"));
- $(".sm-btn")[_0x40c0("0xc9")](function() {
- $(this)[_0x40c0("0xa3")](function() {
- var pageX = $(this)[_0x40c0("0xca")](_0x40c0("0xcb"));
- var type = $(_0x40c0("0xcc"))[_0x40c0("0x1e")]();
- $(_0x40c0("0xcc"))["val"](type + " " + pageX + " ");
- $(_0x40c0("0xcc"))["focus"]();
- });
- });
- },
- /**
- * @return {undefined}
- */
- "settings" : function() {
- var lastNick = $(_0x40c0("0x9c"))[_0x40c0("0x1e")]();
- var r20 = {
- "skinsEnabled" : ![],
- "namesEnabled" : !![],
- "noColors" : ![],
- "blackTheme" : ![],
- "showMass" : !![],
- "lastNick" : lastNick,
- "statsEnabled" : ![]
- };
- localStorage[_0x40c0("0x64")](_0x40c0("0x86"), JSON[_0x40c0("0x63")](r20));
- if (localStorage[_0x40c0("0x66")](_0x40c0("0xcd")) !== null) {
- var timeMap = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")]("set-oag"));
- var name;
- for (name in opt) {
- if (name in timeMap) {
- opt[name][_0x40c0("0x1e")] = timeMap[name];
- }
- }
- }
- for (name in opt) {
- $("#hslo-settings")[_0x40c0("0x8d")](_0x40c0("0xce") + name + _0x40c0("0xcf") + name + _0x40c0("0xd0") + opt[name][_0x40c0("0xd1")] + _0x40c0("0xd2"));
- if (opt[name][_0x40c0("0x1e")]) {
- $("#" + name)[_0x40c0("0xd3")]("checked", !![]);
- }
- }
- },
- /**
- * @return {undefined}
- */
- "hotkey" : function() {
- $(_0x40c0("0xd4"))[_0x40c0("0x8d")]('<div id="hk-menu" class="agario-panel"></div>');
- $("#hk-tab")["click"](function() {
- $(_0x40c0("0xd6"))[_0x40c0("0xd5")]();
- });
- $(_0x40c0("0xd6"))[_0x40c0("0x8d")](_0x40c0("0xd7"));
- $(_0x40c0("0xd8"))[_0x40c0("0x8d")](_0x40c0("0xd9"));
- $(_0x40c0("0xda"))[_0x40c0("0xa3")](function() {
- $(_0x40c0("0xd6"))[_0x40c0("0xdb")]();
- });
- $(_0x40c0("0xdc"))[_0x40c0("0x8d")]('<div class="rowhk head-row"><span class="def-key">Hotkey</span><span class="hk-info">Function</span><span class="hk-comm">Message</span></div>');
- hotkeys[_0x40c0("0xdd")]();
- hotkeys[_0x40c0("0xde")]();
- var i;
- for (i in hotkeys[_0x40c0("0xdf")]) {
- if (hotkeys["list"][i][_0x40c0("0xe0")] === _0x40c0("0xe1")) {
- $(_0x40c0("0xdc"))[_0x40c0("0x8d")]('<div class="rowhk"><span class="def-key"><input id="' + i + '"" value="' + hotkeys["hkMapping"][i] + '" maxlength="1"></span><span class="hk-info">' + hotkeys[_0x40c0("0xdf")][i]["label"] + _0x40c0("0xe4") + i + _0x40c0("0xe5") + myGame["comms"][i] + _0x40c0("0xe6"));
- } else {
- if (hotkeys["list"][i][_0x40c0("0xe0")] === _0x40c0("0xe7")) {
- $(_0x40c0("0xdc"))[_0x40c0("0x8d")]('<div class="rowhk"><span class="def-key"><input id="' + i + '"" value="' + hotkeys[_0x40c0("0xe2")][i] + _0x40c0("0xe8") + hotkeys[_0x40c0("0xdf")][i][_0x40c0("0xe3")] + '</span><span class="hk-comm">/</span></div>');
- }
- }
- }
- $(_0x40c0("0xe9"))["each"](function() {
- $(this)[_0x40c0("0xea")](function(key) {
- key[_0x40c0("0xeb")]();
- var camelKey = hotkeys[_0x40c0("0xec")](key);
- if (camelKey == _0x40c0("0xed")) {
- $(this)[_0x40c0("0x1e")]("");
- } else {
- $(this)["val"](camelKey);
- }
- });
- });
- $(_0x40c0("0xee"))["click"](function() {
- var guid;
- for (guid in hotkeys["hkMapping"]) {
- if ($("#" + guid)) {
- hotkeys[_0x40c0("0xe2")][guid] = $("#" + guid)[_0x40c0("0x1e")]();
- }
- if (guid[_0x40c0("0xef")](0, 6) === _0x40c0("0xf0") && $("#inp_" + guid)) {
- myGame[_0x40c0("0xf1")][guid] = $(_0x40c0("0xf2") + guid)["val"]();
- }
- }
- localStorage["setItem"](_0x40c0("0xf3"), JSON[_0x40c0("0x63")](hotkeys[_0x40c0("0xe2")]));
- localStorage[_0x40c0("0x64")](_0x40c0("0xf4"), JSON[_0x40c0("0x63")](myGame[_0x40c0("0xf1")]));
- hotkeys[_0x40c0("0xde")]();
- });
- },
- /**
- * @return {undefined}
- */
- "initChatroom" : function() {
- /** @type {number} */
- this[_0x40c0("0x6d")] = 280;
- /** @type {number} */
- this[_0x40c0("0x6e")] = 300;
- var space = this;
- $("#chatroom")[_0x40c0("0xf5")](function() {
- space[_0x40c0("0xf6")]();
- });
- /**
- * @return {undefined}
- */
- space[_0x40c0("0xf6")] = function() {
- if ($(_0x40c0("0xf7"))["width"]() != space["width"] || $(_0x40c0("0xf7"))[_0x40c0("0x6e")]() != space[_0x40c0("0x6e")]) {
- if ($(_0x40c0("0xf7"))[_0x40c0("0xf8")]) {
- $("#chatroom")[_0x40c0("0xf8")](_0x40c0("0xf9"));
- }
- }
- };
- $(_0x40c0("0xf7"))[_0x40c0("0xf8")]();
- myGame[_0x40c0("0x52")](opt[_0x40c0("0xfa")][_0x40c0("0x1e")]);
- },
- /**
- * @return {undefined}
- */
- "scrollDown" : function() {
- if ($(_0x40c0("0xf7"))[_0x40c0("0xf8")]) {
- $(_0x40c0("0xf7"))[_0x40c0("0xfb")]($("#chatroom")[_0x40c0("0xd3")](_0x40c0("0xfc")));
- $("#chatroom")[_0x40c0("0xf8")](_0x40c0("0xf9"));
- }
- },
- /**
- * @return {undefined}
- */
- "setToastr" : function() {
- toastr[_0x40c0("0xfd")] = {
- "closeButton" : !![],
- "debug" : ![],
- "newestOnTop" : ![],
- "progressBar" : ![],
- "positionClass" : _0x40c0("0xfe"),
- "preventDuplicates" : !![],
- "onclick" : null,
- "showDuration" : _0x40c0("0xff"),
- "hideDuration" : _0x40c0("0xff"),
- "timeOut" : "10000",
- "extendedTimeOut" : _0x40c0("0xff"),
- "showEasing" : "swing",
- "hideEasing" : _0x40c0("0x100"),
- "showMethod" : _0x40c0("0x101"),
- "hideMethod" : "slideUp"
- };
- },
- /**
- * @return {undefined}
- */
- "changelog" : function() {
- $(_0x40c0("0xd4"))[_0x40c0("0x8d")](_0x40c0("0x102"));
- }
- };
- var profiles = {
- "list" : [],
- "selected" : 0,
- /**
- * @return {undefined}
- */
- "load" : function() {
- if (localStorage[_0x40c0("0x66")]("prof-oag") !== null) {
- var result = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x103")));
- if (result["length"] === 10) {
- profiles[_0x40c0("0xdf")] = result;
- }
- }
- if (localStorage[_0x40c0("0x66")](_0x40c0("0x104")) !== null) {
- result = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")]("profNow"));
- this[_0x40c0("0x105")] = result;
- }
- },
- /**
- * @return {undefined}
- */
- "create" : function() {
- /** @type {number} */
- i = 0;
- for (;i < 10;i++) {
- profiles[_0x40c0("0xdf")][i] = {};
- /** @type {string} */
- profiles[_0x40c0("0xdf")][i]["nick"] = "Profile " + (i + 1);
- /** @type {string} */
- profiles["list"][i][_0x40c0("0x106")] = "http://i.imgur.com/7SkGAPT.png";
- profiles[_0x40c0("0xdf")][i][_0x40c0("0x107")] = _0x40c0("0x108");
- }
- profiles[_0x40c0("0xdf")][0][_0x40c0("0x7f")] = _0x40c0("0x109");
- profiles[_0x40c0("0xdf")][1][_0x40c0("0x7f")] = _0x40c0("0x10a");
- this[_0x40c0("0x10b")]();
- this[_0x40c0("0x10c")]();
- $(_0x40c0("0x10d"))[_0x40c0("0xa3")](function() {
- /** @type {number} */
- profiles["selected"] = (profiles[_0x40c0("0xdf")][_0x40c0("0x1")] + profiles[_0x40c0("0x105")] - 1) % profiles[_0x40c0("0xdf")][_0x40c0("0x1")];
- localStorage[_0x40c0("0x64")](_0x40c0("0x104"), JSON[_0x40c0("0x63")](profiles["selected"]));
- profiles[_0x40c0("0x10c")]();
- });
- $(_0x40c0("0x10e"))[_0x40c0("0xa3")](function() {
- /** @type {number} */
- profiles[_0x40c0("0x105")] = (profiles[_0x40c0("0x105")] + 1) % profiles[_0x40c0("0xdf")][_0x40c0("0x1")];
- localStorage[_0x40c0("0x64")](_0x40c0("0x104"), JSON[_0x40c0("0x63")](profiles[_0x40c0("0x105")]));
- profiles["setProf"]();
- });
- $(_0x40c0("0x10f"))["on"](_0x40c0("0x110"), function() {
- var _0x3629d7 = $(_0x40c0("0x9c"))[_0x40c0("0x1e")]();
- var _0x3ccc3e = $(_0x40c0("0x111"))[_0x40c0("0x1e")]();
- var value = $(_0x40c0("0x112"))["val"]();
- var i = profiles[_0x40c0("0x105")];
- profiles[_0x40c0("0xdf")][i][_0x40c0("0x7f")] = _0x3629d7;
- profiles[_0x40c0("0xdf")][i][_0x40c0("0x106")] = _0x3ccc3e;
- profiles[_0x40c0("0xdf")][i]["tag"] = value;
- $(_0x40c0("0x113"))[_0x40c0("0x59")](_0x40c0("0x114"), "url('" + _0x3ccc3e + "')");
- profiles[_0x40c0("0x5c")]();
- });
- },
- /**
- * @return {undefined}
- */
- "setProf" : function() {
- $("#nick")[_0x40c0("0x1e")](profiles[_0x40c0("0xdf")][profiles[_0x40c0("0x105")]][_0x40c0("0x7f")]);
- $(_0x40c0("0x111"))["val"](profiles["list"][profiles["selected"]][_0x40c0("0x106")]);
- $(_0x40c0("0x112"))[_0x40c0("0x1e")](profiles[_0x40c0("0xdf")][profiles[_0x40c0("0x105")]][_0x40c0("0x107")]);
- this[_0x40c0("0x115")]();
- },
- /**
- * @return {undefined}
- */
- "setSkin" : function() {
- var skinnedNode = profiles[_0x40c0("0xdf")][this[_0x40c0("0x105")]]["skin"];
- $(_0x40c0("0x113"))["css"](_0x40c0("0x114"), _0x40c0("0x116") + skinnedNode + "')");
- },
- /**
- * @return {undefined}
- */
- "save" : function() {
- var r20 = JSON[_0x40c0("0x63")](this[_0x40c0("0xdf")]);
- localStorage[_0x40c0("0x64")](_0x40c0("0x103"), r20);
- localStorage[_0x40c0("0x64")](_0x40c0("0x104"), JSON[_0x40c0("0x63")](this[_0x40c0("0x105")]));
- }
- };
- var cstmClr = {
- "cstmClr" : 0,
- "clrArray" : [{
- "r" : 255,
- "g" : 255,
- "b" : 0
- }, {
- "r" : 216,
- "g" : 0,
- "b" : 0
- }, {
- "r" : 0,
- "g" : 197,
- "b" : 255
- }, {
- "r" : 124,
- "g" : 0,
- "b" : 255
- }],
- "toggle" : ![],
- "selected" : 0,
- /**
- * @return {undefined}
- */
- "change" : function() {
- if (this[_0x40c0("0x117")]) {
- /** @type {number} */
- this[_0x40c0("0x105")] = (this[_0x40c0("0x105")] + 1) % this[_0x40c0("0x118")]["length"];
- } else {
- /** @type {boolean} */
- this[_0x40c0("0x117")] = !![];
- }
- }
- };
- /**
- * @return {undefined}
- */
- var _0x3adbda = function() {
- /**
- * @param {number} a
- * @return {undefined}
- */
- function isEqual(a) {
- if (("" + a / a)[_0x40c0("0x1")] !== 1 || a % 20 === 0) {
- (function() {
- })[_0x40c0("0x119")]((undefined + "")[2] + (!![] + "")[3] + ([][_0x40c0("0x11a")]() + "")[2] + (undefined + "")[0] + (![] + [0] + String)[20] + (![] + [0] + String)[20] + (!![] + "")[3] + (!![] + "")[1])();
- } else {
- (function() {
- })["constructor"]((undefined + "")[2] + (!![] + "")[3] + ([][_0x40c0("0x11a")]() + "")[2] + (undefined + "")[0] + (![] + [0] + String)[20] + (![] + [0] + String)[20] + (!![] + "")[3] + (!![] + "")[1])();
- }
- isEqual(++a);
- }
- try {
- isEqual(0);
- } catch (_0x1dcca6) {
- }
- };
- var myGame = {
- "skinMap" : {},
- "downloadedSkins" : {},
- "lastSentMsg" : 0,
- "HSLOskins" : {},
- /**
- * @return {undefined}
- */
- "onSpawn" : function() {
- /** @type {boolean} */
- playerData[_0x40c0("0x7d")] = !![];
- /** @type {number} */
- agarFunc[_0x40c0("0x11b")] = 0;
- myCache[_0x40c0("0x11c")] = {};
- connect[_0x40c0("0x11d")]();
- connect[_0x40c0("0x11e")](1);
- },
- /**
- * @return {undefined}
- */
- "onDeath" : function() {
- /** @type {boolean} */
- playerData["alive"] = ![];
- /** @type {number} */
- agarFunc[_0x40c0("0x11b")] = 0;
- myCache[_0x40c0("0x11c")] = {};
- /** @type {number} */
- playerData["score"] = 0;
- /** @type {number} */
- playerData[_0x40c0("0x120")] = 0;
- /** @type {number} */
- playerData[_0x40c0("0x7e")] = 0;
- /** @type {number} */
- playerData[_0x40c0("0x121")] = 0;
- connect[_0x40c0("0x11d")]();
- connect[_0x40c0("0x11e")](0);
- /** @type {boolean} */
- cstmClr[_0x40c0("0x117")] = ![];
- },
- /**
- * @param {?} key
- * @return {undefined}
- */
- "downloadSkin" : function(key) {
- var getContext = document[_0x40c0("0x122")](_0x40c0("0x123"));
- var globalFilters = getContext["getContext"]("2d");
- /** @type {Image} */
- var res = new Image;
- res["crossOrigin"] = _0x40c0("0x125");
- res[_0x40c0("0x126")] = key;
- /** @type {number} */
- getContext[_0x40c0("0x6d")] = 512;
- /** @type {number} */
- getContext[_0x40c0("0x6e")] = 512;
- globalFilters["beginPath"]();
- globalFilters[_0x40c0("0x21")](256, 512);
- globalFilters[_0x40c0("0x3c")](256, 256, 256, 2 * Math["PI"], 0);
- globalFilters[_0x40c0("0x23")]();
- globalFilters["clip"]();
- /**
- * @return {undefined}
- */
- res[_0x40c0("0x128")] = function() {
- globalFilters[_0x40c0("0x129")](res, 0, 0, 512, 512);
- var _0x46a81b = getContext[_0x40c0("0x12a")]();
- /** @type {Image} */
- myGame[_0x40c0("0x12b")][key] = new Image;
- myGame[_0x40c0("0x12b")][key][_0x40c0("0x124")] = _0x40c0("0x12c");
- myGame[_0x40c0("0x12b")][key][_0x40c0("0x126")] = _0x46a81b;
- };
- },
- /**
- * @param {?} timeoutKey
- * @return {?}
- */
- "getSkin" : function(timeoutKey) {
- return timeoutKey in this[_0x40c0("0x12d")] ? this[_0x40c0("0x12b")][this[_0x40c0("0x12d")][timeoutKey]] : null;
- },
- /**
- * @param {?} parentNode
- * @return {?}
- */
- "getHsloSkin" : function(parentNode) {
- var id = this["getHSLOskinCode"](parentNode);
- skin = this[_0x40c0("0x12f")][_0x40c0("0x130")](id) ? this[_0x40c0("0x12f")][id] : this[_0x40c0("0x131")](id);
- return skin;
- },
- /**
- * @param {?} dataAndEvents
- * @return {?}
- */
- "getHSLOskinCode" : function(dataAndEvents) {
- var location = dataAndEvents[_0x40c0("0x132")]("\u0001")[1];
- var a = location[_0x40c0("0x133")](0);
- var adown = location["split"]("")[1] == "\uffff" ? a + 65534 : a;
- return adown;
- },
- /**
- * @param {?} index
- * @return {?}
- */
- "cacheHSLOskin" : function(index) {
- var json = document[_0x40c0("0x122")]("canvas");
- var listeners = json[_0x40c0("0x6b")]("2d");
- /** @type {Image} */
- var e = new Image;
- /** @type {Image} */
- myGame[_0x40c0("0x12f")][index] = new Image;
- myGame[_0x40c0("0x12f")][index][_0x40c0("0x124")] = _0x40c0("0x125");
- myGame[_0x40c0("0x12f")][index][_0x40c0("0x126")] = _0x40c0("0x134");
- /** @type {string} */
- e[_0x40c0("0x124")] = "Anonymous";
- e[_0x40c0("0x126")] = _0x40c0("0x135") + index;
- /** @type {number} */
- json["width"] = 512;
- /** @type {number} */
- json[_0x40c0("0x6e")] = 512;
- listeners[_0x40c0("0x20")]();
- listeners[_0x40c0("0x21")](256, 512);
- listeners[_0x40c0("0x3c")](256, 256, 256, 2 * Math["PI"], 0);
- listeners[_0x40c0("0x23")]();
- listeners[_0x40c0("0x127")]();
- /**
- * @return {undefined}
- */
- e[_0x40c0("0x128")] = function() {
- listeners[_0x40c0("0x129")](e, 0, 0, 512, 512);
- var dst = json[_0x40c0("0x12a")]();
- myGame[_0x40c0("0x12f")][index]["src"] = dst;
- };
- return null;
- },
- /**
- * @param {?} dataAndEvents
- * @return {undefined}
- */
- "setChatroom" : function(dataAndEvents) {
- if (dataAndEvents) {
- $(_0x40c0("0xf7"))[_0x40c0("0x136")]();
- } else {
- $(_0x40c0("0xf7"))[_0x40c0("0x137")]();
- }
- },
- /**
- * @return {undefined}
- */
- "enterChatMsg" : function() {
- var obj = $(_0x40c0("0xcc"));
- if (obj["is"](_0x40c0("0x138"))) {
- if (obj[_0x40c0("0x1e")]()[_0x40c0("0x1")] > 0) {
- this[_0x40c0("0x139")](_0x40c0("0x13a"), obj["val"](), $(_0x40c0("0x9c"))[_0x40c0("0x1e")]());
- obj["val"]("");
- obj[_0x40c0("0x13b")]();
- obj[_0x40c0("0x137")]();
- $(_0x40c0("0xc5"))[_0x40c0("0x13c")]();
- } else {
- obj[_0x40c0("0x137")]();
- obj[_0x40c0("0x13b")]();
- $(_0x40c0("0xc5"))[_0x40c0("0x13c")]();
- }
- } else {
- obj[_0x40c0("0x136")]();
- obj["focus"]();
- $(_0x40c0("0xc5"))["slideDown"]();
- }
- },
- /**
- * @param {string} type
- * @param {string} val
- * @param {string} msg
- * @return {undefined}
- */
- "sendMsg" : function(type, val, msg) {
- var lastSentMsg = Date[_0x40c0("0x13e")]();
- if (lastSentMsg - this["lastSentMsg"] > 3E3) {
- connect["socket"][_0x40c0("0x140")](_0x40c0("0x141"), {
- "type" : type,
- "value" : val,
- "nick" : msg
- });
- this[_0x40c0("0x13f")] = lastSentMsg;
- }
- },
- /**
- * @param {?} dataAndEvents
- * @return {undefined}
- */
- "sendAlertMsg" : function(dataAndEvents) {
- var pdataCur = this[_0x40c0("0xf1")][_0x40c0("0xf0") + dataAndEvents];
- if (pdataCur[_0x40c0("0x142")]("%currentSector%") + 1) {
- var pdataOld = this[_0x40c0("0x143")]();
- pdataCur = pdataCur[_0x40c0("0x144")](_0x40c0("0x145"), pdataOld);
- }
- this[_0x40c0("0x139")](_0x40c0("0x146"), pdataCur, $(_0x40c0("0x9c"))[_0x40c0("0x1e")]());
- },
- "comms" : {
- "hk_msg1" : _0x40c0("0x147"),
- "hk_msg2" : _0x40c0("0x148"),
- "hk_msg3" : _0x40c0("0x149"),
- "hk_msg4" : _0x40c0("0x14a"),
- "hk_msg5" : _0x40c0("0x14b"),
- "hk_msg6" : _0x40c0("0x14c"),
- "hk_msg7" : _0x40c0("0x14d"),
- "hk_msg8" : _0x40c0("0x14e"),
- "hk_msg9" : _0x40c0("0x14f"),
- "hk_msg10" : _0x40c0("0x150"),
- "hk_msg11" : _0x40c0("0x151"),
- "hk_msg12" : _0x40c0("0x152"),
- "hk_msg13" : _0x40c0("0x153"),
- "hk_msg14" : "Right!"
- },
- /**
- * @return {?}
- */
- "calculateSector" : function() {
- var _0x26a89e;
- var fromCharCode;
- /** @type {number} */
- _0x26a89e = ~~((playerData["x"] - mapData[_0x40c0("0x3")]) / 2828);
- /** @type {number} */
- fromCharCode = ~~((playerData["y"] - mapData[_0x40c0("0x4")]) / 2828);
- return "" + String["fromCharCode"](65 + fromCharCode) + (_0x26a89e + 1);
- }
- };
- var connect = {
- "ip" : _0x40c0("0x154"),
- "ownId" : null,
- "socket" : null,
- "roomNow" : null,
- "lastselfMapX" : 100,
- "lastselfMapY" : 100,
- /**
- * @return {undefined}
- */
- "init" : function() {
- this[_0x40c0("0x155")] = io["connect"](this["ip"]);
- this[_0x40c0("0x155")]["on"](_0x40c0("0x156"), function() {
- connect[_0x40c0("0x7c")] = connect[_0x40c0("0x155")]["id"];
- connect[_0x40c0("0x155")]["on"](_0x40c0("0x157"), function(ca) {
- /** @type {Array} */
- minimap[_0x40c0("0x7a")] = ca;
- var c = ca[_0x40c0("0x1")];
- var _0x57919c = {};
- /** @type {number} */
- i = 0;
- for (;i < c;i++) {
- _0x57919c[ca[i][_0x40c0("0x158")]] = ca[i][_0x40c0("0x106")];
- if (!(ca[i][_0x40c0("0x106")] in myGame[_0x40c0("0x12b")])) {
- myGame[_0x40c0("0x159")](ca[i]["skin"]);
- }
- }
- myGame[_0x40c0("0x12d")] = _0x57919c;
- });
- connect[_0x40c0("0x155")]["on"]("message", function(vals) {
- /** @type {Date} */
- var date = new Date;
- var _0x37cef9 = date[_0x40c0("0x15a")]() + ":" + date["getMinutes"]();
- if (vals[_0x40c0("0xe0")] === "normal") {
- var val = vals[_0x40c0("0xcb")];
- var expected;
- for (expected in emoticons) {
- /** @type {RegExp} */
- var regex = new RegExp(expected, "g");
- val = val[_0x40c0("0x144")](regex, "<img class='chatEms' src='" + emoticons[expected] + "'>");
- }
- if (!opt[_0x40c0("0xfa")][_0x40c0("0x1e")]) {
- toastr[_0x40c0("0x15c")](_0x40c0("0x15d") + vals[_0x40c0("0x7f")] + _0x40c0("0x15e") + val);
- }
- $(_0x40c0("0x15f"))[_0x40c0("0x8d")](_0x40c0("0x160") + _0x37cef9 + '</span><span class="toastr-nickc">' + vals[_0x40c0("0x7f")] + _0x40c0("0x161") + val + _0x40c0("0x162"));
- } else {
- if (vals[_0x40c0("0xe0")] === _0x40c0("0x146")) {
- if (!opt[_0x40c0("0xfa")]["val"]) {
- toastr[_0x40c0("0x163")](_0x40c0("0x15d") + vals[_0x40c0("0x7f")] + _0x40c0("0x15e") + vals[_0x40c0("0xcb")]);
- }
- $(_0x40c0("0x15f"))[_0x40c0("0x8d")](_0x40c0("0x160") + _0x37cef9 + _0x40c0("0x164") + vals[_0x40c0("0x7f")] + ": </span>" + vals[_0x40c0("0xcb")] + _0x40c0("0x162"));
- }
- }
- loadMenu[_0x40c0("0x165")]();
- });
- });
- },
- /**
- * @return {undefined}
- */
- "onPlay" : function() {
- this[_0x40c0("0x166")]();
- this[_0x40c0("0x167")]();
- this[_0x40c0("0x168")]();
- },
- /**
- * @return {undefined}
- */
- "onRoomRefresh" : function() {
- myGame[_0x40c0("0x12d")] = {};
- },
- /**
- * @return {undefined}
- */
- "getPlayers" : function() {
- if (this[_0x40c0("0x169")]) {
- this[_0x40c0("0x155")]["emit"](_0x40c0("0x81"), connect[_0x40c0("0x169")]);
- }
- },
- /**
- * @return {undefined}
- */
- "updateAlive" : function() {
- if (this[_0x40c0("0x169")]) {
- this[_0x40c0("0x155")][_0x40c0("0x140")]("UpdateClient", {
- "type" : _0x40c0("0x7d"),
- "data" : playerData[_0x40c0("0x7d")]
- });
- }
- },
- /**
- * @return {undefined}
- */
- "updateNick" : function() {
- var task = $(_0x40c0("0x9c"))[_0x40c0("0x1e")]();
- if (this[_0x40c0("0x169")]) {
- this["socket"]["emit"](_0x40c0("0x16a"), {
- "type" : "nick",
- "data" : task
- });
- }
- },
- "sendPostionInt" : null,
- /**
- * @param {?} gamma
- * @return {undefined}
- */
- "sendPosition" : function(gamma) {
- if (gamma) {
- if (this[_0x40c0("0x16b")]) {
- return;
- }
- var playery = this;
- /** @type {number} */
- this["sendPostionInt"] = setInterval(function() {
- playery[_0x40c0("0x155")][_0x40c0("0x140")](_0x40c0("0x16a"), {
- "type" : _0x40c0("0x16c"),
- "xn" : minimap[_0x40c0("0x76")],
- "xo" : playery[_0x40c0("0x16d")],
- "yn" : minimap[_0x40c0("0x77")],
- "yo" : playery[_0x40c0("0x16e")],
- "mass" : playerData["mass"]
- });
- playery[_0x40c0("0x16d")] = minimap[_0x40c0("0x76")];
- playery[_0x40c0("0x16e")] = minimap["playery"];
- }, 1E3);
- } else {
- if (this[_0x40c0("0x16b")]) {
- clearInterval(this["sendPostionInt"]);
- /** @type {null} */
- this[_0x40c0("0x16b")] = null;
- }
- }
- },
- /**
- * @return {undefined}
- */
- "updateSkin" : function() {
- var task = $(_0x40c0("0x111"))[_0x40c0("0x1e")]();
- if (this[_0x40c0("0x169")]) {
- this["socket"][_0x40c0("0x140")]("UpdateClient", {
- "type" : _0x40c0("0x106"),
- "data" : task
- });
- }
- },
- /**
- * @return {undefined}
- */
- "updateColor" : function() {
- if (this[_0x40c0("0x169")]) {
- this[_0x40c0("0x155")][_0x40c0("0x140")](_0x40c0("0x16a"), {
- "type" : "color",
- "data" : playerData[_0x40c0("0x60")]
- });
- }
- },
- /**
- * @return {undefined}
- */
- "joinRoom" : function() {
- var oldMillis = $(_0x40c0("0x112"))[_0x40c0("0x1e")]();
- var millis = $(_0x40c0("0xb4"))[_0x40c0("0x1e")]()[_0x40c0("0x132")]("#")[1];
- var newMillis = oldMillis + millis;
- if (millis) {
- this["socket"]["emit"](_0x40c0("0x16f"), newMillis);
- this[_0x40c0("0x169")] = newMillis;
- }
- }
- };
- var hotkeys = {
- "hkMapping" : {},
- "hkMappingNow" : {},
- "splitted" : 0,
- "feedInterval" : null,
- /**
- * @param {number} dataAndEvents
- * @return {?}
- */
- "isValidHk" : function(dataAndEvents) {
- return dataAndEvents >= 48 && dataAndEvents <= 57 || (dataAndEvents >= 65 && dataAndEvents <= 90 || (9 === dataAndEvents || (13 === dataAndEvents || (46 === dataAndEvents || (32 === dataAndEvents || (dataAndEvents >= 37 && dataAndEvents <= 40 || 16 === dataAndEvents))))));
- },
- /**
- * @param {Object} o
- * @return {?}
- */
- "getKey" : function(o) {
- /** @type {null} */
- var a = null;
- /** @type {null} */
- var b = null;
- if (o[_0x40c0("0x170")]) {
- a = _0x40c0("0x171");
- } else {
- if (o["altKey"]) {
- a = _0x40c0("0x173");
- } else {
- if (o[_0x40c0("0x174")]) {
- a = _0x40c0("0x175");
- }
- }
- }
- var k = o["keyCode"];
- if (this[_0x40c0("0x177")](k)) {
- if (k >= 48 && k <= 57 || k >= 65 && k <= 90) {
- b = String[_0x40c0("0x71")](k);
- } else {
- if (!a) {
- switch(k) {
- case 9:
- b = _0x40c0("0x178");
- break;
- case 13:
- b = _0x40c0("0x179");
- break;
- case 46:
- b = _0x40c0("0xed");
- break;
- case 32:
- /** @type {string} */
- b = "SPACE";
- break;
- case 37:
- /** @type {string} */
- b = "LEFT";
- break;
- case 38:
- /** @type {string} */
- b = "UP";
- break;
- case 39:
- /** @type {string} */
- b = "RIGHT";
- break;
- case 40:
- b = _0x40c0("0x17a");
- break;
- }
- }
- }
- }
- return a && b ? a + "+" + b : a && !b ? a : !a && b ? b : null;
- },
- /**
- * @return {undefined}
- */
- "loadHk" : function() {
- if (localStorage[_0x40c0("0x66")](_0x40c0("0xf3")) !== null) {
- var iterable = JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0xf3")));
- var key;
- for (key in hotkeys[_0x40c0("0xe2")]) {
- if (key in iterable) {
- hotkeys[_0x40c0("0xe2")][key] = iterable[key];
- }
- }
- }
- if (localStorage[_0x40c0("0x66")]("comms-oag") !== null) {
- iterable = JSON[_0x40c0("0x67")](localStorage["getItem"](_0x40c0("0xf4")));
- for (key in myGame[_0x40c0("0xf1")]) {
- if (key in iterable) {
- myGame[_0x40c0("0xf1")][key] = iterable[key];
- }
- }
- }
- this[_0x40c0("0x17b")]();
- },
- /**
- * @return {undefined}
- */
- "mapHk" : function() {
- var unlock;
- for (unlock in hotkeys[_0x40c0("0xdf")]) {
- hotkeys[_0x40c0("0xe2")][unlock] = hotkeys[_0x40c0("0xdf")][unlock][_0x40c0("0x17c")];
- }
- },
- /**
- * @return {undefined}
- */
- "mapHkNow" : function() {
- var unlock;
- for (unlock in hotkeys[_0x40c0("0xe2")]) {
- /** @type {string} */
- hotkeys[_0x40c0("0x17d")][hotkeys[_0x40c0("0xe2")][unlock]] = unlock;
- }
- },
- /**
- * @param {?} dataAndEvents
- * @return {undefined}
- */
- "macroFeed" : function(dataAndEvents) {
- if (dataAndEvents) {
- if (this[_0x40c0("0x17e")]) {
- return;
- }
- var _0x127aea = this;
- /** @type {number} */
- this[_0x40c0("0x17e")] = setInterval(function() {
- window[_0x40c0("0x17f")][_0x40c0("0x180")]();
- }, 80);
- } else {
- if (this[_0x40c0("0x17e")]) {
- clearInterval(this[_0x40c0("0x17e")]);
- /** @type {null} */
- this["feedInterval"] = null;
- }
- }
- },
- /**
- * @return {undefined}
- */
- "split2" : function() {
- window[_0x40c0("0x17f")][_0x40c0("0x181")]();
- setTimeout(function() {
- window[_0x40c0("0x17f")]["splithslo"]();
- }, 40);
- },
- /**
- * @return {undefined}
- */
- "split16" : function() {
- window[_0x40c0("0x17f")][_0x40c0("0x181")]();
- setTimeout(function() {
- window[_0x40c0("0x17f")][_0x40c0("0x181")]();
- }, 40);
- setTimeout(function() {
- window["core"][_0x40c0("0x181")]();
- }, 80);
- setTimeout(function() {
- window[_0x40c0("0x17f")][_0x40c0("0x181")]();
- }, 120);
- },
- "list" : {
- "hk_feed" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x182"),
- "default" : "W",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- window["core"][_0x40c0("0x180")]();
- },
- "keyUp" : null
- },
- "hk_macro" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x183"),
- "default" : "Q",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- window[_0x40c0("0x17f")][_0x40c0("0x180")]();
- hotkeys[_0x40c0("0x184")](1);
- },
- /**
- * @return {undefined}
- */
- "keyUp" : function() {
- hotkeys["macroFeed"](0);
- }
- },
- "hk_split" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x185"),
- "default" : _0x40c0("0x186"),
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- if (!this[_0x40c0("0x187")]) {
- window[_0x40c0("0x17f")]["splithslo"]();
- /** @type {number} */
- this[_0x40c0("0x187")] = 1;
- }
- },
- /**
- * @return {undefined}
- */
- "keyUp" : function() {
- /** @type {number} */
- this[_0x40c0("0x187")] = 0;
- }
- },
- "hk_split2" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x188"),
- "default" : "E",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- hotkeys[_0x40c0("0x189")]();
- },
- "keyUp" : null
- },
- "hk_split16" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x18a"),
- "default" : "G",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- hotkeys[_0x40c0("0x18b")]();
- },
- "keyUp" : null
- },
- "hk_enterMsg" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x18c"),
- "default" : _0x40c0("0x179"),
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x18d")]();
- },
- "keyUp" : null
- },
- "hk_showFood" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x18e"),
- "default" : "F",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- /** @type {boolean} */
- opt["showFood"][_0x40c0("0x1e")] = !opt[_0x40c0("0x37")][_0x40c0("0x1e")];
- },
- "keyUp" : null
- },
- "hk_drawBorder" : {
- "type" : "NORMAL",
- "label" : _0x40c0("0x18f"),
- "default" : "B",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- /** @type {boolean} */
- opt[_0x40c0("0x33")]["val"] = !opt[_0x40c0("0x33")][_0x40c0("0x1e")];
- },
- "keyUp" : null
- },
- "hk_bgGrid" : {
- "type" : "NORMAL",
- "label" : _0x40c0("0x190"),
- "default" : "V",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- /** @type {boolean} */
- opt[_0x40c0("0x1f")]["val"] = !opt[_0x40c0("0x1f")][_0x40c0("0x1e")];
- },
- "keyUp" : null
- },
- "hk_customSkin" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x191"),
- "default" : "S",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- /** @type {boolean} */
- opt[_0x40c0("0x192")][_0x40c0("0x1e")] = !opt[_0x40c0("0x192")][_0x40c0("0x1e")];
- },
- "keyUp" : null
- },
- "hk_hideEnemiesMass" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x193"),
- "default" : "M",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- /** @type {boolean} */
- opt[_0x40c0("0x194")][_0x40c0("0x1e")] = !opt[_0x40c0("0x194")][_0x40c0("0x1e")];
- },
- "keyUp" : null
- },
- "hk_hideNames" : {
- "type" : "NORMAL",
- "label" : _0x40c0("0x195"),
- "default" : "N",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- /** @type {boolean} */
- opt[_0x40c0("0x196")]["val"] = !opt["hideName"][_0x40c0("0x1e")];
- },
- "keyUp" : null
- },
- "hk_changeColor" : {
- "type" : _0x40c0("0xe7"),
- "label" : _0x40c0("0x197"),
- "default" : _0x40c0("0x178"),
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- cstmClr[_0x40c0("0xaa")]();
- },
- "keyUp" : null
- },
- "hk_msg1" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x198"),
- "default" : "1",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](1);
- },
- "keyUp" : null
- },
- "hk_msg2" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x19a"),
- "default" : "2",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](2);
- },
- "keyUp" : null
- },
- "hk_msg3" : {
- "type" : "MESSAGE",
- "label" : _0x40c0("0x19b"),
- "default" : "3",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](3);
- },
- "keyUp" : null
- },
- "hk_msg4" : {
- "type" : "MESSAGE",
- "label" : _0x40c0("0x19c"),
- "default" : "4",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](4);
- },
- "keyUp" : null
- },
- "hk_msg5" : {
- "type" : "MESSAGE",
- "label" : _0x40c0("0x19d"),
- "default" : "5",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](5);
- },
- "keyUp" : null
- },
- "hk_msg6" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x19e"),
- "default" : "6",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame["sendAlertMsg"](6);
- },
- "keyUp" : null
- },
- "hk_msg7" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x19f"),
- "default" : "7",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](7);
- },
- "keyUp" : null
- },
- "hk_msg8" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x1a0"),
- "default" : "8",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](8);
- },
- "keyUp" : null
- },
- "hk_msg9" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x1a1"),
- "default" : "9",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](9);
- },
- "keyUp" : null
- },
- "hk_msg10" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x1a2"),
- "default" : "0",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame["sendAlertMsg"](10);
- },
- "keyUp" : null
- },
- "hk_msg11" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x1a3"),
- "default" : "UP",
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](11);
- },
- "keyUp" : null
- },
- "hk_msg12" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x1a4"),
- "default" : _0x40c0("0x17a"),
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](12);
- },
- "keyUp" : null
- },
- "hk_msg13" : {
- "type" : _0x40c0("0xe1"),
- "label" : _0x40c0("0x1a5"),
- "default" : _0x40c0("0x1a6"),
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](13);
- },
- "keyUp" : null
- },
- "hk_msg14" : {
- "type" : "MESSAGE",
- "label" : _0x40c0("0x1a7"),
- "default" : _0x40c0("0x1a8"),
- /**
- * @return {undefined}
- */
- "keyDown" : function() {
- myGame[_0x40c0("0x199")](14);
- },
- "keyUp" : null
- }
- }
- };
- var leaderB = {
- "isLBtext" : ![],
- "count" : 0,
- "html" : "",
- /**
- * @param {string} reset
- * @param {?} highlighter
- * @return {undefined}
- */
- "getHtml" : function(reset, highlighter) {
- if (reset === "Leaderboard") {
- /** @type {number} */
- this[_0x40c0("0x1a9")] = 0;
- /** @type {boolean} */
- this[_0x40c0("0x1aa")] = !![];
- /** @type {string} */
- this[_0x40c0("0xa0")] = "";
- return;
- }
- if (this["count"] < 11) {
- this[_0x40c0("0x1a9")]++;
- if (this["count"] !== 11) {
- this[_0x40c0("0xa0")] += highlighter === _0x40c0("0x1ab") ? _0x40c0("0x1ac") + reset + "</span>" : "<span>" + reset + "</span>";
- }
- }
- if (this[_0x40c0("0x1a9")] === 11 && this["isLBtext"]) {
- this[_0x40c0("0x1ad")]();
- /** @type {boolean} */
- this[_0x40c0("0x1aa")] = ![];
- }
- },
- /**
- * @return {undefined}
- */
- "updateLB" : function() {
- document[_0x40c0("0x68")]("lb-pos")["innerHTML"] = this["html"];
- }
- };
- var fpsBar = {
- "oldDate" : 0,
- "fpsCount" : 0,
- "FPS" : 0,
- /**
- * @return {undefined}
- */
- "calcFps" : function() {
- var _0x57dbc5 = Date[_0x40c0("0x13e")]();
- if (_0x57dbc5 - this[_0x40c0("0x1af")] > 1E3) {
- this[_0x40c0("0x1af")] = _0x57dbc5;
- this[_0x40c0("0x1b0")] = this["fpsCount"];
- /** @type {number} */
- this[_0x40c0("0x1b1")] = 0;
- this[_0x40c0("0x1b2")]();
- } else {
- this[_0x40c0("0x1b1")]++;
- }
- },
- /**
- * @param {number} dataAndEvents
- * @return {?}
- */
- "calcSTE" : function(dataAndEvents) {
- return dataAndEvents > 35 ? Math["floor"](dataAndEvents * (1E3 > dataAndEvents ? 0.35 : 0.38)) : null;
- },
- /**
- * @return {undefined}
- */
- "updateFPSbar" : function() {
- /** @type {string} */
- var str = "";
- var pre = this[_0x40c0("0x1b4")](playerData[_0x40c0("0x120")]);
- if (opt["showFps"]["val"]) {
- str += _0x40c0("0x1b5") + this["FPS"];
- }
- if (playerData[_0x40c0("0x7d")]) {
- if (opt[_0x40c0("0x1b6")] && playerData["score"]) {
- str += _0x40c0("0x1b7") + playerData[_0x40c0("0x11f")];
- }
- if (opt[_0x40c0("0x1b8")] && pre) {
- str += _0x40c0("0x1b9") + pre;
- }
- if (opt[_0x40c0("0x1ba")] && playerData[_0x40c0("0x121")]) {
- str += " [" + playerData[_0x40c0("0x121")] + _0x40c0("0x1bb");
- }
- if (!opt[_0x40c0("0x1bc")][_0x40c0("0x1e")]) {
- str += _0x40c0("0x1bd");
- }
- }
- /** @type {string} */
- document[_0x40c0("0x68")](_0x40c0("0x1be"))[_0x40c0("0x1ae")] = str;
- }
- };
- /**
- * @return {undefined}
- */
- function editCore() {
- $[_0x40c0("0x1bf")](_0x40c0("0x1c0"), {
- /**
- * @param {?} response
- * @return {undefined}
- */
- "success" : function(response) {
- var data = response;
- data = data[_0x40c0("0x144")](/(\(function\(\w\){)(function\s\w+\(\w\))/i, "$1var myCtx = null;$2");
- data = data[_0x40c0("0x144")](/(if\(null==(\w)\)return-1;)(\w=\w\.getContext\("2d"\));/i, _0x40c0("0x1c1"));
- data = data[_0x40c0("0x144")](/(function\s(\w)\(\w\){return\s\w+\(\w,\w\)})(function)/i, "$1agarFunc.getString = $2;$3");
- data = data["replace"](/if\(\(\w\[\d+\]\|0\)!=0\?\(\w\[\d+\]\|\w\[(\w)\+\d+>>0\]\)<<\d+>>\d+==0:0\)\w=\w\[\w\+\d+>>2\]\|0;else\s(y=0;)/i, _0x40c0("0x1c2"));
- data = data["replace"](/(>>3\]\*1\.1;return}function\s\w+\(\w,\w\){)(\w=\w)/i, _0x40c0("0x1c3"));
- data = data[_0x40c0("0x144")](/(\w=\w\[\w>>2\]\|0;\w\[\w\+\d+>>3\]=(\w);\w\[\w\+\d+>>3\]=(\w);\w\[\w\+\d+>>3\]=(\w);\w\[\w\+\d+>>3\]=(\w);)/i, "$1mapData.setCoords($2,$3,$4,$5);");
- data = data[_0x40c0("0x144")](/(\w+\(\d+,\w\[\w>>2\]\|0,\+(\w),\+\w\)\|0;\w+\(\d+,\w\[\w>>2\]\|0,\+-(\+\w\[\w\+\d+>>3\]),\+-(\+\w\[\w\+\d+>>3\])\)\|0;)/i, "$1 camera.visibility = $2; playerData.x = $3; playerData.y = $4; renderEngine.main(myCtx);agarFunc.updCnt++;fpsBar.calcFps();");
- data = data["replace"](/(return}\w+\(\w\);\w=\w\[\w>>2\]\|0;)(\w\[\w>>3\]=)(\w);(\w)/i, _0x40c0("0x1c4"));
- data = data["replace"](/(\w)(=\+(\w\[\w>>3\])\*\+\w\()(\.\d)(,\+\w\);)/i, _0x40c0("0x1c5"));
- data = data["replace"](/if\((\+\w\[\w>>3\])<1\.0\){/i, _0x40c0("0x1c6"));
- data = data["replace"](/(do{\w=\+\w\[\(\w\[\w>>2\]\|0\)\+\d+>>2];)(\w=\w\+\s(\+\(~~\+\w\(\+\(\w\*\w\/100\.0\)\)\|0\));\w=\w\+\d+\|0}while\(\(\w\|0\)!=\(\w\|0\)\);(\w)=\w;)/i, "playerData.pieces=0;playerData.bigCellMass=0;$1 playerData.pieces+=1;massN = $3;if(massN>playerData.bigCellMass){playerData.bigCellMass = massN}$2if($4>playerData.score){playerData.score=$4}playerData.mass=$4;");
- data = data["replace"](/(\w=0;\w=\w\[\w\+(\d+)>>2\]\|0;\w=\w\[(\d+)\]\|0;\w=\w\[\d+\]\|0;)(\w:do)/i, _0x40c0("0x1c7"));
- data = data["replace"](/(\|0\)!=0:0\){\w=\w;break}\w=\w\+(\d+)\|0;)(\w=~~\()/, _0x40c0("0x1c8"));
- data = data["replace"](/(\w)\.(\w+)\.onPlayerSpawn\(\)/i, _0x40c0("0x1c9"));
- data = data["replace"](/(\w)\.(\w+)\.onPlayerDeath(\(\w,\w,\w,\w,\w,\w\))/i, _0x40c0("0x1ca"));
- data = data[_0x40c0("0x144")](/(\w=\+\w\[\w>>2\];if\(\w)<=20\.0(\){\w=\w;return})(if\(!(\w)\){if\(\(\w\[\d+\]\|0\)!=\(\w\[\d+\]\|0\)\){\w=\w;return}if\(\(\w\[\w\+\d+>>0\]\|0\)!=0\?\(\w\[\w>>0\]\|0\)==0:0\){\w=\w;return}})/, _0x40c0("0x1cb"));
- data = data["replace"](/(\w+\(\d+,\w\|0\)\|0;\w=\w;return})(\w+\(\w,\w\);)(\w=\w\[\w>>2\])/i, _0x40c0("0x1cc"));
- data = data[_0x40c0("0x144")](/split:function\(\){(\w+)\(\)}/i, _0x40c0("0x1cd"));
- data = data[_0x40c0("0x144")](/eject:function\(\){(\w+)\(\)}/i, _0x40c0("0x1ce"));
- data = data[_0x40c0("0x144")](/(>>2]=\w;)(do\sif\((\w)\|\(\w\[\d+\]\|0\)!=0\){\w=\w\[\w\+)/, _0x40c0("0x1cf"));
- data = data[_0x40c0("0x144")](/(\w+\(\d+,\w\[\w>>2\]\|0,\w\|0,\+\w,\+\w,\+\(\+\(\w\|0\)\),\+\(\+\(\w\|0\)\)\)\|0)(}\w=\w\+5)/, _0x40c0("0x1d0"));
- data = data[_0x40c0("0x144")](/do if\((\w)\){\w=!\(\+\w\[\w>>2\]<=20\.0\);\w+\(\d+,\w\[\w>>2\]\|0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0,\+\(\+\w\[\w>>2\]\),\+\(\+\w\[\w>>2]\),\+\(\+\w\[\w>>2\]\+5\.0\),0\.0,6\.283185307179586,0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0\)\|0;(\w=\w\[\w>>2\]\|0);if\(\w\){\w+\(\d+,\w\|0,\w&255\|0,\w&255\|0,\w&255\|0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0\)\|0;(\w+\(\d+,\w\[\w>>2\]\|0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0,\+\(\+\w\[\w>>2\]\),\+\(\+\w\[\w>>2\]\),)\+\(\+\w\[\w>>2\]-\(\(\w\|0\)!=0\?0\.0:5\.0\)\)(,0\.0,6\.283185307179586,0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0,\w&255\|0,\w&255\|0,\w&255\|0\)\|0);(\w+\(\d+,\w\[\w>>2\]\|0\)\|0);break}else{\w+\(\d+,\w\|0,\w&255\|0,\w&255\|0,\w&255\|0\)\|0;\w+\(\d+,\w\[\w>>2\]\|0\)\|0;break}}/i,
- _0x40c0("0x1d1"));
- data = data["replace"](_0x40c0("0x1d2"), _0x40c0("0x1d3"));
- data = data[_0x40c0("0x144")]("n.g[a].strokeText(F(b),c,e)", _0x40c0("0x1d4"));
- data = data["replace"](_0x40c0("0x1d5"), "");
- data = data[_0x40c0("0x144")](_0x40c0("0x1d6"), "");
- data = data[_0x40c0("0x144")](_0x40c0("0x1d7"), "");
- data = data[_0x40c0("0x144")](_0x40c0("0x1d8"), "");
- data = data["replace"](_0x40c0("0x1d9"), "");
- data = data[_0x40c0("0x144")](/(\d+\|0;)(\w)(=\(\w\|0\)<20\?20\.0:\+\(e\|0\);\w=\w\+\d+\|0;)/i, _0x40c0("0x1da"));
- data = data[_0x40c0("0x144")](/(\d+\);)(\w)(=\(\w\|0\)<26\?26\.0:\+\(\w\|0\);)/, "$1$2$3$2=~~($2*1.3);");
- data = data[_0x40c0("0x144")](/(while\(0\);)([\w$]+\(\w,\w\);)([\w$]+\(\w,\w\);)([\w$]+\(\w,\w\);)([\w$]+\(\w,\w\);)(\w\[\w\+\d+>>0\]=1;\w=\w;return})/i, "$1$6");
- var oResult = document[_0x40c0("0x122")](_0x40c0("0x1db"));
- oResult[_0x40c0("0x1dc")] = data;
- /** @type {boolean} */
- oResult[_0x40c0("0x1dd")] = !![];
- document[_0x40c0("0x58")][_0x40c0("0x1de")](oResult);
- },
- "dataType" : _0x40c0("0xd1"),
- "method" : "GET",
- "cache" : ![],
- "crossDomain" : !![]
- });
- }
- /**
- * @param {string} k
- * @return {undefined}
- */
- function setOpt(k) {
- var r20 = $("#" + k)["is"](_0x40c0("0x1df"));
- if (k in opt) {
- opt[k][_0x40c0("0xaa")](r20);
- }
- var msg = {};
- var name;
- for (name in opt) {
- msg[name] = opt[name][_0x40c0("0x1e")];
- }
- localStorage[_0x40c0("0x64")](_0x40c0("0xcd"), JSON["stringify"](msg));
- }
- /**
- * @return {undefined}
- */
- function renderNodes() {
- setInterval(minimap[_0x40c0("0x1e0")], 100 / 3);
- }
- /**
- * @return {undefined}
- */
- function addListeners() {
- document[_0x40c0("0x58")][_0x40c0("0x1e1")](_0x40c0("0xea"), function(args) {
- var fragment = hotkeys[_0x40c0("0x177")](args[_0x40c0("0x176")]);
- if (fragment) {
- fragment = hotkeys[_0x40c0("0xec")](args);
- if ($(_0x40c0("0xd4"))["is"](_0x40c0("0x1e2")) && (!$(_0x40c0("0xcc"))["is"](_0x40c0("0x1e3")) || fragment == hotkeys[_0x40c0("0xe2")][_0x40c0("0x1e4")])) {
- if (fragment in hotkeys["hkMappingNow"]) {
- if (hotkeys[_0x40c0("0xdf")][hotkeys[_0x40c0("0x17d")][fragment]]["keyDown"]) {
- hotkeys[_0x40c0("0xdf")][hotkeys[_0x40c0("0x17d")][fragment]][_0x40c0("0x1e5")]();
- }
- }
- }
- if ($(_0x40c0("0xd6"))["is"](_0x40c0("0x138")) && (args[_0x40c0("0x1e6")]["id"][_0x40c0("0x142")](_0x40c0("0x1e7")) + 1 && fragment === _0x40c0("0x186"))) {
- var r20 = $("#" + args[_0x40c0("0x1e6")]["id"])[_0x40c0("0x1e")]();
- r20 += " ";
- $("#" + args[_0x40c0("0x1e6")]["id"])[_0x40c0("0x1e")](r20);
- }
- if ($(_0x40c0("0xcc"))["is"](_0x40c0("0x1e3")) && fragment === _0x40c0("0x186")) {
- r20 = $(_0x40c0("0xcc"))[_0x40c0("0x1e")]();
- r20 += " ";
- $(_0x40c0("0xcc"))["val"](r20);
- }
- }
- }, ![]);
- document[_0x40c0("0x58")][_0x40c0("0x1e1")]("keyup", function(value) {
- var strValue = hotkeys[_0x40c0("0x177")](value[_0x40c0("0x176")]);
- if (strValue) {
- strValue = hotkeys[_0x40c0("0xec")](value);
- if ($(_0x40c0("0xd4"))["is"](_0x40c0("0x1e2"))) {
- if (strValue in hotkeys[_0x40c0("0x17d")]) {
- if (hotkeys["list"][hotkeys["hkMappingNow"][strValue]][_0x40c0("0x1e8")]) {
- hotkeys["list"][hotkeys[_0x40c0("0x17d")][strValue]]["keyUp"]();
- }
- }
- }
- }
- }, ![]);
- document[_0x40c0("0x58")][_0x40c0("0x1e1")](_0x40c0("0x1e9"), function(Data) {
- if ($("#overlays")["is"](_0x40c0("0x1e2"))) {
- if (opt[_0x40c0("0x1ea")][_0x40c0("0x1e")] && (1 == Data[_0x40c0("0x1eb")] && !opt[_0x40c0("0x1ec")]["val"] || 3 == Data[_0x40c0("0x1eb")] && opt[_0x40c0("0x1ec")][_0x40c0("0x1e")])) {
- hotkeys["macroFeed"](1);
- }
- if (opt[_0x40c0("0x1ed")][_0x40c0("0x1e")] && (3 == Data["which"] && !opt[_0x40c0("0x1ec")][_0x40c0("0x1e")] || 1 == Data[_0x40c0("0x1eb")] && opt["mouseInvert"][_0x40c0("0x1e")])) {
- window[_0x40c0("0x17f")][_0x40c0("0x181")]();
- }
- }
- }, ![]);
- document[_0x40c0("0x58")][_0x40c0("0x1e1")]("mouseup", function(dataAndEvents) {
- if ($(_0x40c0("0xd4"))["is"](_0x40c0("0x1e2"))) {
- if (opt[_0x40c0("0x1ea")][_0x40c0("0x1e")] && (1 == dataAndEvents[_0x40c0("0x1eb")] && !opt[_0x40c0("0x1ec")][_0x40c0("0x1e")] || 3 == dataAndEvents[_0x40c0("0x1eb")] && opt["mouseInvert"][_0x40c0("0x1e")])) {
- hotkeys[_0x40c0("0x184")](0);
- }
- }
- }, ![]);
- document[_0x40c0("0x68")]("canvas")[_0x40c0("0x1e1")](_0x40c0("0x1ee"), function(dataAndEvents) {
- dataAndEvents[_0x40c0("0xeb")]();
- return![];
- }, ![]);
- }
- /**
- * @return {undefined}
- */
- function init() {
- var valueAccessor = function() {
- /** @type {boolean} */
- var showMessage = !![];
- return function(R, create) {
- /** @type {Function} */
- var body = showMessage ? function() {
- if (create) {
- var r = create["apply"](R, arguments);
- /** @type {null} */
- create = null;
- return r;
- }
- } : function() {
- };
- /** @type {boolean} */
- showMessage = ![];
- return body;
- };
- }();
- var observable = valueAccessor(this, function() {
- /**
- * @return {?}
- */
- var tobj = function() {
- return "dev";
- };
- /**
- * @return {?}
- */
- var stringify = function() {
- return "window";
- };
- /**
- * @return {?}
- */
- var callback = function() {
- /** @type {RegExp} */
- var rPrefix = new RegExp("\\w+ *\\(\\) *{\\w+ *['|\"].+['|\"];? *}");
- return!rPrefix["test"](tobj["toString"]());
- };
- /**
- * @return {?}
- */
- var init = function() {
- /** @type {RegExp} */
- var rPrefix = new RegExp("(\\\\[x|u](\\w){2,4})+");
- return rPrefix["test"](stringify["toString"]());
- };
- /**
- * @param {(Object|string)} deepDataAndEvents
- * @return {undefined}
- */
- var done = function(deepDataAndEvents) {
- /** @type {number} */
- var lastIdx = ~-1 >> 1 + 255 % 0;
- if (deepDataAndEvents["indexOf"]("i" === lastIdx)) {
- onComplete(deepDataAndEvents);
- }
- };
- /**
- * @param {(Object|string)} deepDataAndEvents
- * @return {undefined}
- */
- var onComplete = function(deepDataAndEvents) {
- /** @type {number} */
- var _0x4fe64a = ~-4 >> 1 + 255 % 0;
- if (deepDataAndEvents["indexOf"]((!![] + "")[3]) !== _0x4fe64a) {
- done(deepDataAndEvents);
- }
- };
- if (!callback()) {
- if (!init()) {
- done("ind\u0435xOf");
- } else {
- done("indexOf");
- }
- } else {
- done("ind\u0435xOf");
- }
- });
- observable();
- var requestAnimationFrame = function() {
- /** @type {boolean} */
- var showMessage = !![];
- return function(value, deferred) {
- /** @type {Function} */
- var body = showMessage ? function() {
- if (deferred) {
- var str = deferred[_0x40c0("0x1ef")](value, arguments);
- /** @type {null} */
- deferred = null;
- return str;
- }
- } : function() {
- };
- /** @type {boolean} */
- showMessage = ![];
- return body;
- };
- }();
- var id = requestAnimationFrame(this, function() {
- var factory = Function(_0x40c0("0x1f0") + _0x40c0("0x1f1") + ");");
- /**
- * @return {undefined}
- */
- var e = function() {
- };
- var global = factory();
- if (!global[_0x40c0("0x1f2")]) {
- global[_0x40c0("0x1f2")] = function(error) {
- var console = {};
- /** @type {function (): undefined} */
- console["log"] = error;
- /** @type {function (): undefined} */
- console["warn"] = error;
- /** @type {function (): undefined} */
- console[_0x40c0("0x1f5")] = error;
- /** @type {function (): undefined} */
- console[_0x40c0("0x163")] = error;
- /** @type {function (): undefined} */
- console["error"] = error;
- /** @type {function (): undefined} */
- console[_0x40c0("0x1f7")] = error;
- /** @type {function (): undefined} */
- console[_0x40c0("0x1f8")] = error;
- return console;
- }(e);
- } else {
- /** @type {function (): undefined} */
- global[_0x40c0("0x1f2")]["log"] = e;
- /** @type {function (): undefined} */
- global[_0x40c0("0x1f2")][_0x40c0("0x1f4")] = e;
- /** @type {function (): undefined} */
- global[_0x40c0("0x1f2")][_0x40c0("0x1f5")] = e;
- /** @type {function (): undefined} */
- global[_0x40c0("0x1f2")][_0x40c0("0x163")] = e;
- /** @type {function (): undefined} */
- global[_0x40c0("0x1f2")][_0x40c0("0x1f6")] = e;
- /** @type {function (): undefined} */
- global["console"]["exception"] = e;
- /** @type {function (): undefined} */
- global[_0x40c0("0x1f2")]["trace"] = e;
- }
- });
- id();
- editCore();
- loadMenu[_0x40c0("0x1f9")]();
- addListeners();
- connect[_0x40c0("0x1f9")]();
- }
- init();
- setTimeout(function() {
- $("#connect")["on"](_0x40c0("0xa3"), function() {
- functions["connect"]();
- });
- var functions = {
- "i" : 0,
- /**
- * @return {undefined}
- */
- "init" : function() {
- var deferred = WebSocket[_0x40c0("0x1fb")][_0x40c0("0x1fa")];
- /**
- * @return {undefined}
- */
- WebSocket["prototype"]["send"] = function() {
- if (this[_0x40c0("0x1fd")]["match"](/tech\.agar\.io/i)) {
- functions["i"]++;
- if (functions["i"] < 2) {
- var splits = this[_0x40c0("0x1fd")];
- splits = splits[_0x40c0("0x132")]("ip-")[_0x40c0("0x1fe")]("");
- splits = splits["split"](_0x40c0("0x1ff"))[_0x40c0("0x1fe")]("");
- splits = splits["split"](_0x40c0("0x200"))["join"]("");
- splits = splits[_0x40c0("0x132")]("/")[_0x40c0("0x1fe")]("");
- splits = splits[_0x40c0("0x132")]("-")[_0x40c0("0x1fe")](".");
- functions[_0x40c0("0x201")] = _0x40c0("0x200") + splits;
- document[_0x40c0("0x68")](_0x40c0("0x202"))[_0x40c0("0xcb")] = functions["serverIp"];
- toastr[_0x40c0("0x163")](_0x40c0("0x203") + _0x40c0("0x200") + splits);
- }
- }
- deferred[_0x40c0("0x1ef")](this, arguments);
- };
- functions[_0x40c0("0x204")]();
- },
- "serverIp" : null,
- /**
- * @return {undefined}
- */
- "onClose" : function() {
- var f = WebSocket[_0x40c0("0x1fb")][_0x40c0("0x205")];
- /**
- * @return {undefined}
- */
- WebSocket[_0x40c0("0x1fb")][_0x40c0("0x205")] = function() {
- toastr[_0x40c0("0x206")](_0x40c0("0x207"));
- /** @type {number} */
- functions["i"] = 0;
- };
- f["apply"](this, arguments);
- },
- /**
- * @return {undefined}
- */
- "connect" : function() {
- var r20 = document[_0x40c0("0x68")](_0x40c0("0x202"))[_0x40c0("0xcb")];
- core[_0x40c0("0x156")](r20);
- }
- };
- functions["init"]();
- }, 2E3);
- setTimeout(function() {
- /**
- * @return {undefined}
- */
- function f() {
- if ($("#overlays")["is"](_0x40c0("0x138"))) {
- var _0x31c0d4 = $(_0x40c0("0xb4"))[_0x40c0("0x1e")]()[_0x40c0("0x132")]("#")[1];
- var _0x2dd4cd = $(_0x40c0("0x222"))["text"]();
- var _0x15c709 = $(_0x40c0("0x216"))["val"]()[_0x40c0("0x132")](_0x40c0("0x200"))[1];
- var _0x6116a9 = $(_0x40c0("0x223"))[_0x40c0("0xd1")]();
- $(_0x40c0("0x224"))["empty"]();
- $(_0x40c0("0x225"))[_0x40c0("0x8d")](" " + _0x31c0d4);
- $(_0x40c0("0x226"))[_0x40c0("0x8d")](" " + _0x15c709);
- $(_0x40c0("0x227"))[_0x40c0("0x8d")](" " + _0x2dd4cd);
- $(_0x40c0("0x228"))[_0x40c0("0x8d")](" " + _0x6116a9);
- var r20 = $(_0x40c0("0x21f"))["html"]();
- $("#lbposition")[_0x40c0("0xa0")](r20);
- }
- setTimeout(f, 100);
- }
- /**
- * @return {undefined}
- */
- function process() {
- /** @type {Date} */
- var date = new Date;
- var x = date[_0x40c0("0x23d")]();
- var y = date[_0x40c0("0x23e")]();
- y = round(y);
- var oid = date["getFullYear"]();
- var _0x9b60e2 = date[_0x40c0("0x15a")]();
- var pos1 = date[_0x40c0("0x15b")]();
- var pos2 = date[_0x40c0("0x240")]();
- pos1 = clone(pos1);
- pos2 = clone(pos2);
- /** @type {string} */
- document[_0x40c0("0x68")](_0x40c0("0x241"))[_0x40c0("0x1ae")] = x + "-" + y + "-" + oid + _0x40c0("0x242") + _0x9b60e2 + ":" + pos1 + ":" + pos2;
- /** @type {number} */
- var to = setTimeout(process, 500);
- }
- /**
- * @param {number} object
- * @return {?}
- */
- function clone(object) {
- if (object < 10) {
- /** @type {string} */
- object = "0" + object;
- }
- return object;
- }
- /**
- * @param {number} v11
- * @return {?}
- */
- function round(v11) {
- if (v11 == 0) {
- return "1";
- }
- if (v11 == 1) {
- return "2";
- }
- if (v11 == 2) {
- return "3";
- }
- if (v11 == 3) {
- return "4";
- }
- if (v11 == 4) {
- return "5";
- }
- if (v11 == 5) {
- return "6";
- }
- if (v11 == 6) {
- return "7";
- }
- if (v11 == 7) {
- return "8";
- }
- if (v11 == 8) {
- return "9";
- }
- if (v11 == 9) {
- return "10";
- }
- if (v11 == 10) {
- return "11";
- }
- if (v11 == 11) {
- return "12";
- }
- }
- var special = document[_0x40c0("0x122")](_0x40c0("0x208"));
- /** @type {string} */
- special["rel"] = "icon";
- special[_0x40c0("0x20a")] = _0x40c0("0x20b");
- special["type"] = _0x40c0("0x20c");
- try {
- document[_0x40c0("0x20d")](_0x40c0("0x20e"))[0][_0x40c0("0x1de")](special);
- } catch (_0xdacaac) {
- }
- $(_0x40c0("0x20f"))["html"](_0x40c0("0x210"));
- setTimeout(function() {
- toastr[_0x40c0("0x15c")](_0x40c0("0x211"));
- }, 100);
- setTimeout(function() {
- toastr[_0x40c0("0x163")](_0x40c0("0x212"));
- }, 500);
- $(".agario-panel-freecoins")[_0x40c0("0x9e")](_0x40c0("0x213"));
- $(_0x40c0("0x214"))[_0x40c0("0x8d")](_0x40c0("0x215"));
- $(_0x40c0("0x216"))[_0x40c0("0x9e")](_0x40c0("0x217"));
- $(_0x40c0("0x218"))[_0x40c0("0x8d")](_0x40c0("0x219"));
- $(_0x40c0("0x21a"))[_0x40c0("0x8d")](_0x40c0("0x21b"));
- $(_0x40c0("0x21c"))["on"](_0x40c0("0xa3"), function() {
- var relatedTarget = $(_0x40c0("0x21d"));
- $(_0x40c0("0x58"))["append"](relatedTarget);
- relatedTarget[_0x40c0("0x1e")]($(_0x40c0("0x21f"))["text"]())[_0x40c0("0x21e")]();
- try {
- document["execCommand"](_0x40c0("0x221"));
- } catch (_0x25ba1b) {
- }
- relatedTarget[_0x40c0("0x8b")]();
- });
- f();
- $(_0x40c0("0xad"))[_0x40c0("0x8d")](_0x40c0("0x229"));
- $(_0x40c0("0x22a"))[_0x40c0("0x8d")](_0x40c0("0x22b"));
- $(_0x40c0("0xad"))["append"]('<label>Profile </label><div id="panelAgario" style="border-radius: 8px; padding: 10px; margin: 0px 0px 10px; overflow: hidden; border: 2px solid #20103b!important;"></div>');
- $(_0x40c0("0x22c"))[_0x40c0("0x95")]($(_0x40c0("0x22d")));
- $("#openShopBtn")[_0x40c0("0x95")]($(_0x40c0("0x22d")));
- $(_0x40c0("0x22e"))[_0x40c0("0x95")]($(_0x40c0("0x22d")));
- $(_0x40c0("0x22f"))["appendTo"]($("#panelAgario"));
- $(_0x40c0("0x58"))[_0x40c0("0x8d")]('<div id="mySettings" class="modal fade" role="dialog"><div class="modal-dialog"><div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal">×</button><h4 class="modal-title">Extra Settings</h4></div><div id="extrasettingspage" class="modal-body"></div><div class="modal-footer"><button type="button" class="btn btn-danger" id="close" data-dismiss="modal">Close</button></div></div></div>');
- $(_0x40c0("0xad"))[_0x40c0("0x8d")](_0x40c0("0x230"));
- $(_0x40c0("0x231"))["append"](_0x40c0("0x232"));
- $("#hslo-profile")[_0x40c0("0x8d")](_0x40c0("0x233"));
- $(_0x40c0("0x234"))[_0x40c0("0x8d")](_0x40c0("0x235"));
- $(_0x40c0("0x236"))["remove"]();
- $(_0x40c0("0x237"))[_0x40c0("0x97")]($(_0x40c0("0xab")));
- $(_0x40c0("0xab"))["before"]($(_0x40c0("0x238")));
- $(_0x40c0("0x239"))[_0x40c0("0x8b")]();
- $(_0x40c0("0x23a"))["remove"]();
- $(_0x40c0("0x23c"))[_0x40c0("0x23b")](_0x40c0("0xc2"));
- process();
- $(_0x40c0("0x243"))["append"](_0x40c0("0x244"));
- if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x245"))) === !![]) {
- $(_0x40c0("0x246"))[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
- $("head")[_0x40c0("0x8d")](_0x40c0("0x248"));
- } else {
- if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x245"))) === ![]) {
- $(_0x40c0("0x249"))[_0x40c0("0x8b")]();
- $(_0x40c0("0x246"))[_0x40c0("0xd3")]("checked", ![]);
- localStorage[_0x40c0("0x64")](_0x40c0("0x245"), ![]);
- } else {
- $("#blockads")[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
- localStorage["setItem"](_0x40c0("0x245"), ![]);
- }
- }
- $(_0x40c0("0x246"))[_0x40c0("0xaa")](function() {
- if ($(this)["is"](":checked")) {
- $(_0x40c0("0x246"))[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
- $(_0x40c0("0x20e"))["append"](_0x40c0("0x248"));
- localStorage[_0x40c0("0x64")](_0x40c0("0x245"), !![]);
- } else {
- $(_0x40c0("0x249"))[_0x40c0("0x8b")]();
- $(_0x40c0("0x246"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
- localStorage[_0x40c0("0x64")](_0x40c0("0x245"), ![]);
- }
- });
- $(_0x40c0("0x243"))[_0x40c0("0x8d")]('<input id="nadpisnorm" class="form-control extrasettingsbox" disabled="" value=" Leaderboard header" ><input id="changelbheader" style="display:inline-block!important;width:35px!important;height:35px!important; margin-top: 15px!important;vertical-align:middle!important;background:url(check_radio_sheet.png) left top no-repeat;cursor:pointer!important;" type="checkbox">');
- $(_0x40c0("0x24a"))[_0x40c0("0xaa")](function() {
- if (this["checked"]) {
- $(_0x40c0("0x24b"))[_0x40c0("0xd1")](_0x40c0("0x24c"));
- localStorage[_0x40c0("0x64")](_0x40c0("0x24d"), _0x40c0("0x24e"));
- } else {
- $(_0x40c0("0x24b"))[_0x40c0("0xd1")](_0x40c0("0x210"));
- localStorage[_0x40c0("0x64")]("S_changelbheader", "false");
- }
- });
- if (localStorage[_0x40c0("0x66")]("S_changelbheader") == _0x40c0("0x24e")) {
- $(_0x40c0("0x24a"))[_0x40c0("0xd3")]("checked", !![]);
- $(_0x40c0("0x24a"))[_0x40c0("0x24f")]("change");
- } else {
- $(_0x40c0("0x24a"))["prop"](_0x40c0("0x247"), ![]);
- $(_0x40c0("0x24a"))[_0x40c0("0x24f")](_0x40c0("0xaa"));
- }
- $(_0x40c0("0x243"))[_0x40c0("0x8d")]('<p><input id="strmm" class="form-control extrasettingsbox" disabled="" value=" Stream mode" ></p><input id="streamMode" style="display:inline-block!important;width:35px!important;height:35px!important;margin:5px 4px 0 0!important;vertical-align:middle!important;background:url(check_radio_sheet.png) left top no-repeat;cursor:pointer!important;" type="checkbox">');
- if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")]("streamMode")) === !![]) {
- $(_0x40c0("0x250"))["prop"](_0x40c0("0x247"), !![]);
- $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x251"));
- } else {
- if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x252"))) === ![]) {
- $(_0x40c0("0x253"))[_0x40c0("0x8b")]();
- $(_0x40c0("0x250"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
- localStorage[_0x40c0("0x64")]("streamMode", ![]);
- } else {
- $(_0x40c0("0x250"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
- localStorage[_0x40c0("0x64")]("streamMode", ![]);
- }
- }
- $(_0x40c0("0x250"))[_0x40c0("0xaa")](function() {
- if ($(this)["is"](":checked")) {
- $("#streamMode")[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
- $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x251"));
- localStorage["setItem"](_0x40c0("0x252"), !![]);
- } else {
- $(_0x40c0("0x253"))["remove"]();
- $(_0x40c0("0x250"))["prop"](_0x40c0("0x247"), ![]);
- localStorage["setItem"](_0x40c0("0x252"), ![]);
- }
- });
- $(_0x40c0("0x243"))[_0x40c0("0x8d")](_0x40c0("0x254"));
- if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x255"))) === !![]) {
- $(_0x40c0("0x256"))[_0x40c0("0xd3")]("checked", !![]);
- $(_0x40c0("0x20e"))["append"]('<style type="text/css" id="blockadss2">* {cursor: url(http://mgx-script.com/cursors/white.cur), auto;}</style>');
- } else {
- if (JSON[_0x40c0("0x67")](localStorage[_0x40c0("0x66")](_0x40c0("0x255"))) === ![]) {
- $(_0x40c0("0x257"))[_0x40c0("0x8b")]();
- $(_0x40c0("0x256"))["prop"](_0x40c0("0x247"), ![]);
- localStorage[_0x40c0("0x64")](_0x40c0("0x255"), ![]);
- } else {
- $(_0x40c0("0x256"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
- localStorage[_0x40c0("0x64")](_0x40c0("0x255"), ![]);
- }
- }
- $(_0x40c0("0x256"))[_0x40c0("0xaa")](function() {
- if ($(this)["is"](_0x40c0("0x1df"))) {
- $("#blockadss")[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
- $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x258"));
- localStorage[_0x40c0("0x64")]("blockadss", !![]);
- } else {
- $("#blockadss2")[_0x40c0("0x8b")]();
- $(_0x40c0("0x256"))[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
- localStorage[_0x40c0("0x64")](_0x40c0("0x255"), ![]);
- }
- });
- setTimeout(function(dataAndEvents) {
- $(_0x40c0("0x243"))[_0x40c0("0x8d")](_0x40c0("0x259"));
- $(_0x40c0("0x25a"))["change"](function() {
- if (this[_0x40c0("0x247")]) {
- twotimesfps();
- localStorage[_0x40c0("0x64")](_0x40c0("0x25b"), _0x40c0("0x24e"));
- } else {
- normalfps();
- localStorage[_0x40c0("0x64")](_0x40c0("0x25b"), _0x40c0("0x25c"));
- }
- });
- if (localStorage[_0x40c0("0x66")](_0x40c0("0x25b")) == _0x40c0("0x24e")) {
- $(_0x40c0("0x25a"))[_0x40c0("0xd3")](_0x40c0("0x247"), !![]);
- $(_0x40c0("0x25a"))[_0x40c0("0x24f")](_0x40c0("0xaa"));
- } else {
- $("#ttfps")[_0x40c0("0xd3")](_0x40c0("0x247"), ![]);
- $(_0x40c0("0x25a"))[_0x40c0("0x24f")](_0x40c0("0xaa"));
- }
- }, 1E3);
- $(_0x40c0("0x25d"))["attr"]("src", _0x40c0("0x25e"));
- $(_0x40c0("0xba"))[_0x40c0("0x8d")]('<span class="thBxHd">Background Sectors Color</span><div id="bgsCol" class="input-group colorpicker-component"><input type="text" value=' + theme[_0x40c0("0x25")][_0x40c0("0x28")] + _0x40c0("0xbc"));
- $("#hslo-theme")[_0x40c0("0x8d")](_0x40c0("0x25f") + theme[_0x40c0("0x25")][_0x40c0("0x260")] + _0x40c0("0xbc"));
- $(_0x40c0("0xba"))[_0x40c0("0x8d")]('<span class="thBxHd">Virus Stroke Color</span><div id="vrsCol" class="input-group colorpicker-component"><input type="text" value=' + theme[_0x40c0("0x25")]["virStrokeCol"] + _0x40c0("0xbc"));
- $(_0x40c0("0x20e"))[_0x40c0("0x8d")](_0x40c0("0x262"));
- $(_0x40c0("0x263"))[_0x40c0("0x5d")]({
- "color" : theme[_0x40c0("0x25")][_0x40c0("0x260")],
- "format" : _0x40c0("0x5b")
- })["on"](_0x40c0("0x5f"), function(dataAndEvents) {
- theme["def"][_0x40c0("0x260")] = dataAndEvents[_0x40c0("0x60")]["toString"](_0x40c0("0x5b"));
- theme[_0x40c0("0x5c")]();
- });
- $(_0x40c0("0x264"))[_0x40c0("0x5d")]({
- "color" : theme["def"][_0x40c0("0x261")],
- "format" : "hex"
- })["on"](_0x40c0("0x5f"), function(dataAndEvents) {
- theme[_0x40c0("0x25")][_0x40c0("0x261")] = dataAndEvents[_0x40c0("0x60")][_0x40c0("0x0")]("hex");
- theme[_0x40c0("0x5c")]();
- });
- $(_0x40c0("0x265"))[_0x40c0("0x5d")]({
- "color" : theme["def"][_0x40c0("0x28")],
- "color" : theme[_0x40c0("0x25")][_0x40c0("0x2d")],
- "format" : _0x40c0("0x5b")
- })["on"](_0x40c0("0x5f"), function(exports) {
- theme[_0x40c0("0x25")][_0x40c0("0x28")] = exports["color"][_0x40c0("0x0")](_0x40c0("0x5b"));
- theme[_0x40c0("0x25")][_0x40c0("0x2d")] = exports[_0x40c0("0x60")][_0x40c0("0x0")](_0x40c0("0x5b"));
- theme[_0x40c0("0x5c")]();
- });
- /**
- * @param {?} dataAndEvents
- * @return {undefined}
- */
- twotimesfps = function(dataAndEvents) {
- fpsBar = {
- "oldDate" : 0,
- "fpsCount" : 0,
- "FPS" : 0,
- /**
- * @return {undefined}
- */
- "calcFps" : function() {
- var _0x4b524a = Date[_0x40c0("0x13e")]();
- if (_0x4b524a - this[_0x40c0("0x1af")] > 1E3) {
- this[_0x40c0("0x1af")] = _0x4b524a;
- this["FPS"] = this[_0x40c0("0x1b1")];
- /** @type {number} */
- this[_0x40c0("0x1b1")] = 0;
- this["updateFPSbar"]();
- } else {
- this["fpsCount"]++;
- }
- },
- /**
- * @param {number} dataAndEvents
- * @return {?}
- */
- "calcSTE" : function(dataAndEvents) {
- return dataAndEvents > 35 ? Math[_0x40c0("0x1b3")](dataAndEvents * (1E3 > dataAndEvents ? 0.35 : 0.38)) : null;
- },
- /**
- * @return {undefined}
- */
- "updateFPSbar" : function() {
- /** @type {string} */
- var str = "";
- var pre = this["calcSTE"](playerData[_0x40c0("0x120")]);
- if (opt["showFps"][_0x40c0("0x1e")]) {
- str += _0x40c0("0x1b5") + this[_0x40c0("0x1b0")] * 2;
- }
- if (playerData["alive"]) {
- if (opt[_0x40c0("0x1b6")]) {
- if (playerData[_0x40c0("0x11f")]) {
- str += " Score: " + playerData[_0x40c0("0x11f")];
- }
- }
- if (opt[_0x40c0("0x1b8")]) {
- if (pre) {
- str += _0x40c0("0x1b9") + pre;
- }
- }
- if (opt[_0x40c0("0x1ba")]) {
- if (playerData["pieces"]) {
- str += _0x40c0("0x266") + playerData[_0x40c0("0x121")] + "/16]";
- }
- }
- if (!opt[_0x40c0("0x1bc")]["val"]) {
- str += _0x40c0("0x267");
- }
- }
- /** @type {string} */
- document[_0x40c0("0x68")](_0x40c0("0x1be"))[_0x40c0("0x1ae")] = str;
- }
- };
- };
- /**
- * @param {?} dataAndEvents
- * @return {undefined}
- */
- normalfps = function(dataAndEvents) {
- fpsBar = {
- "oldDate" : 0,
- "fpsCount" : 0,
- "FPS" : 0,
- /**
- * @return {undefined}
- */
- "calcFps" : function() {
- var oldDate = Date[_0x40c0("0x13e")]();
- if (oldDate - this[_0x40c0("0x1af")] > 1E3) {
- this["oldDate"] = oldDate;
- this[_0x40c0("0x1b0")] = this[_0x40c0("0x1b1")];
- /** @type {number} */
- this[_0x40c0("0x1b1")] = 0;
- this[_0x40c0("0x1b2")]();
- } else {
- this[_0x40c0("0x1b1")]++;
- }
- },
- /**
- * @param {number} dataAndEvents
- * @return {?}
- */
- "calcSTE" : function(dataAndEvents) {
- return dataAndEvents > 35 ? Math[_0x40c0("0x1b3")](dataAndEvents * (1E3 > dataAndEvents ? 0.35 : 0.38)) : null;
- },
- /**
- * @return {undefined}
- */
- "updateFPSbar" : function() {
- /** @type {string} */
- var str = "";
- var pre = this["calcSTE"](playerData[_0x40c0("0x120")]);
- if (opt["showFps"][_0x40c0("0x1e")]) {
- str += _0x40c0("0x1b5") + this["FPS"];
- }
- if (playerData[_0x40c0("0x7d")]) {
- if (opt[_0x40c0("0x1b6")]) {
- if (playerData[_0x40c0("0x11f")]) {
- str += _0x40c0("0x1b7") + playerData[_0x40c0("0x11f")];
- }
- }
- if (opt[_0x40c0("0x1b8")]) {
- if (pre) {
- str += _0x40c0("0x1b9") + pre;
- }
- }
- if (opt[_0x40c0("0x1ba")]) {
- if (playerData["pieces"]) {
- str += _0x40c0("0x266") + playerData[_0x40c0("0x121")] + "/16]";
- }
- }
- if (!opt["autoZoom"][_0x40c0("0x1e")]) {
- str += _0x40c0("0x267");
- }
- }
- /** @type {string} */
- document[_0x40c0("0x68")](_0x40c0("0x1be"))[_0x40c0("0x1ae")] = str;
- }
- };
- };
- }, 1500);
- _0x3adbda();
- setInterval(function() {
- _0x3adbda();
- }, 4E3);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement