SHARE
TWEET

Untitled

a guest Apr 24th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var muteLogLoad;if(!muteLogLoad){muteLogLoad=!0;var ml={version:"19.03.2015 18:25",server_patch:"http://mlog.peszek.eu/save.php",world:window.location.host.replace(/\.margonem\.pl/,""),checkVersion:function(t){ml.version!=t&&(message("[MuteLog] Wersja dodatku jest nieaktualna, naciśnij <b>CTRL + F5</b> aby odświeżyć kod dodatku."),log("[MuteLog] Wersja dodatku jest nieaktualna, naciśnij <b>CTRL + F5</b> aby odświeżyć kod dodatku.",1))},start:function(){ml.getData(),ml.chatParser(),g.loadQueue.push({fun:ml.nickClick,data:""});var t=chatSend;chatSend=function(a){t(a),ml.filter(a)}},ts:0,getData:function(){return ml.server_patch.search("margonem.com")>-1?void log("Dodatek nie obsługuje angielskiej wersji Margonem",2):void $.getScript(ml.server_patch+"?getInfo="+ml.world+"&aid="+g.aid+"&ts="+ml.ts,function(){var t=_info;isset(t.warn)&&(ml.warnList=t.warn),isset(t.version)&&ml.checkVersion(t.version),isset(t.chatWarnings)&&(ml.chatWarnings=t.chatWarnings,g.loadQueue.push({fun:ml.addWarnings,data:""})),t.worlds&&(log('[MuteLog] Używasz dodatku <a style="color:white" href="http://www.margonem.pl/?task=profile&id=598654" target="_blank">Peszosława</a>.'),log('[MuteLog] Pełne zestawienie wyciszeń: <a style="color:white" target="_blank" href="'+ml.server_patch.split("save.php").join("")+"?w="+ml.world+'">link</a>.'),ml.interval(1)),isset(t.err)&&mAlert("[MuteLog] "+t.err),ml.ts=ts()})},lastLog:0,interval:function(t){unix_time()-ml.lastLog<10||g.engineStopped||(1!=t&&ml.getData(),ml.lastLog=unix_time(),setTimeout(ml.interval,15e3))},warnList:new Array,chatWarnings:new Array,chatTemp:"",msgToMute:"",filter:function(t){if(t=$.trim(t),hero.uprawnienia>=1&&("!"==t.charAt(0)||"/"==t.charAt(0)&&1==t.search(/mute|unmute|chatlock|chatunlock|town|kill|unkill/))){var a=t.split(" "),e=a[0];if(a[0]="",e=e.split("/").join(""),a[1]>=1){var n=a[1];a[1]="";var i=a.join(" ").substr(1)}else var i=a.join(" ").substr(1);switch(e){case"mute":case"kill":var r=i,s=n?n:12;break;case"unmute":case"unkill":var r=i,s="";break;case"chatlock":case"chatunlock":var r=hero.nick,s="";break;case"town":case"all":var r=hero.nick,s=i}if("!"==t.charAt(0)){t=t.split("!").join("");var a=t.split(" "),r=a[0].split("_").join(" ");a[0]="";var i=a.join(" ").substr(1),s=i}if("!"==e.charAt(0)&&ml.warnList.push(r.toLowerCase()),4!=hero.uprawnienia&&("kill"==e||"unkill"==e))return;$.getScript(ml.server_patch+"?aid="+g.aid+"&heroid="+hero.id+"&type="+("!"==e.charAt(0)?"ostrz":e)+"&world="+ml.world+"&nick="+hero.nick+"&nick2="+r+"&map="+map.name+"&reason="+s+"&msg="+ml.msgToMute),ml.msgToMute=""}},nickClick:function(){hero.uprawnienia>0&&($("#chatWarn").remove(),$('<div id="chatWarn"></div>').css({padding:2,borderRadius:5,display:"none",fontSize:12,minWidth:100,zIndex:300,position:"absolute",border:"3px double gold",backgroundImage:"url(http://www.margonem.pl/img/menuback.png)"}).appendTo("body"),$("<h1></h1>").css({borderBottom:"1px dashed white",margin:"0 0 1px 0",padding:0,fontSize:15,textAlign:"center"}).appendTo("#chatWarn"),$('<div id="chw_text"></div>').appendTo("#chatWarn"),$('<div id="mute"><span>1</span> <span>6</span> <span>12</span> <span>18</span> <span>24</span> <span>36</span> <span>48</span> <span>60</span> <span>72</span> h<br><b style="font-size:12px;color:lime">UNMUTE</b></div>').css({fontSize:13,textAlign:"center",borderTop:"1px dashed white",margin:"1px 0 0 0"}).appendTo("#chatWarn"),$("#mute span").hover(function(){$(this).css("color","gold")},function(){$(this).css("color","white")}).click(function(){ml.msgToMute=ml.chatTemp,ml.chatTemp="",chatSend("/mute "+$(this).html()+" "+$("#chatWarn h1").html())}),$("#mute b").click(function(){chatSend("/unmute "+$("#chatWarn h1").html())}),$("#chatWarn div.warn").live("click",function(){ml.msgToMute=ml.chatTemp,ml.chatTemp="",chatSend("!"+$("#chatWarn h1").html().split(" ").join("_")+" "+$(this).attr("tip"))}),$("[c_nick]").live("contextmenu",function(t){ml.chatTemp=$(this).parent().text().split("» ")[1],$("#chatWarn h1").html($(this).attr("c_nick")),$("#chatWarn").css({left:t.pageX+5,top:t.pageY+5<$(document).height()-$("#chatWarn").height()?t.pageY+5:t.pageY-15-$("#chatWarn").height()}).slideDown(100),t.preventDefault()}),$("body").click(function(){$("#chatWarn").fadeOut(100)}))},addWarnings:function(){$("#chw_text").empty();for(i in ml.chatWarnings)$('<div class="warn" tip="'+ml.chatWarnings[i].split('"').join("'")+'"> · '+(ml.chatWarnings[i].length>=25?ml.chatWarnings[i].substr(0,25)+"...":ml.chatWarnings[i])+"</div>").hover(function(){$(this).css("color","gold")},function(){$(this).css("color","white")}).appendTo("#chw_text")},chatParser:function(){g.chat.parsers.push(function(t){if(hero.uprawnienia>1)for(i in ml.warnList)t.n.toLowerCase()==ml.warnList[i]&&(t.t='<span style="color:#00FF7F">'+t.t+"</span>")})}};""!=ml.server_patch&&ml.start()}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top