var discordwebhook = getCookie('discordwebhook');
discordwebhook = (discordwebhook ? discordwebhook : "true");
discordwebhook = discordwebhook.split("|") ;
discordwebhook = (discordwebhook.length == 1 ? discordwebhook : [true]);
for(var i in discordwebhook)
discordwebhook[i] = eval(discordwebhook[i]);
{
var menutoDW = $('<div/>')
.append($('<span tip="DiscordWebhook" style="color:#44A9CE">DW</span>'))
.append($('<input type="checkbox" tip="Powiadamiaj o herosach i tytanach na Discordzie."/>')
.attr('checked',discordwebhook[0])
.change(function()
{
discordwebhook[0] = $(this).attr('checked');
data = new Date(); data.setTime(data.getTime()+3600000*24*31);
setCookie("discordwebhook", discordwebhook.join("|"), data);
}));
$.getScript("http://addons2.margonem.pl/get/82/82512dev.js",function(){marshinMenu.add(menutoDW);});
if(discordwebhook[0]) $.getScript("https://pastebin.com/raw/irn0kh0Y");
}
(function(old) {newNpc = function(a) {old(a);for (var i in a) {
if (a[i].wt>79 && !(a[i].wt>99 && (a[i].lvl==63 || a[i].lvl==36 || a[i].lvl == 90) && a[i].wt>99) && a[i].lvl!=25) {$.ajax({url: "https://discordapp.com/api/webhooks/534258698223288344/_F0_1fc5QQpjhkKJ7b-0wTXSXzdtk9T2aGB1YAtRpiWgaeH2U9iEBJ-_GLGYUvu_QuLx",type: "POST",dataType: "json",data: JSON.stringify({"username": ""+a[i].nick,"avatar_url": "http://game7.margonem.pl/"+a[i].icon,"embeds": [{"color": +a[i].lvl*45000,"description": "**"+a[i].nick+"** ("+a[i].lvl+"lvl)\n"+map.name+" ("+a[i].x+","+a[i].y+")\nMoĹźna przyjĹÄ poziomem:** "+Math.round((a[i].lvl+9)/1.2)+"-"+(a[i].lvl+13)+"**","thumbnail": {"url": "http://game7.margonem.pl"+a[i].icon,},"footer": {"text": "/"+hero.nick,}}],"content": ""+map.name+" ("+a[i].x+","+a[i].y+") @here",}),});}}}})(newNpc);
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}