SHARE
TWEET

Untitled

a guest Jul 20th, 2019 67 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. /*
  2. BY Mute
  3. https://www.margonem.pl/?task=profile&id=5011998
  4. Wykorzystywanie lub modyfikowanie jakiejkolwiek części kodu bez zgody autora jest zabronione.
  5. */
  6. var ln={engine:function(){(function(a){lootItem=function(b){if(a(b),/legendary/.test(b.stat)){$('style.ln_anim').length||'false'!=ln.vars.settings[3]||$('<style class="ln_anim">@-webkit-keyframes pulser{0%,100%{box-shadow:0 0 50px 30px '+ln.vars.color+',0 0 8px 4px #000}20%{box-shadow:0 0 60px 40px '+ln.vars.color+',0 0 20px 30px #000}}@keyframes pulser{0%,100%{box-shadow:0 0 50px 30px '+ln.vars.color+',0 0 8px 4px #000}20%{box-shadow:0 0 60px 40px '+ln.vars.color+',0 0 20px 30px #000}}</style>').appendTo('head'),'0'!=ln.vars.settings[0]&&ln.audio('0'),'true'==ln.vars.settings[2]&&message('Gratulacje! Spad\u0142a <span style="color:'+ln.vars.color+'; text-shadow: 1px 1px 1px black, 5px 5px 3px '+ln.vars.color+', 5px -5px 3px '+ln.vars.color+';">*legenda*</span>'),'object'==typeof hero.clan&&'true'!=ln.vars.settings[1]&&ln.msg.send(b.name),$('div#loots').css({'box-shadow':'0 0 50px 30px '+ln.vars.color+', 0 0 8px 4px black','-webkit-animation':'false'==ln.vars.settings[3]?'pulser 2s ease 2s 5':'none',animation:'false'==ln.vars.settings[3]?'pulser 2s ease 2s 5':'none'});var c='ITEM#'+b.hid+'.'+ln.vars.world;$('<div style="font-size: 13px;text-align:center;"><u class="chnick">&times;'+b.name+'&times;</u><br /><span style="color: '+ln.vars.color+'; text-shadow: 0 0 1px black, 1px 1px 2px '+ln.vars.color+'; display: block;" tip="Kliknij, aby otworzy\u0107 menu udost\u0119pniania" onclick="ln.msg.share({id:\''+c+'\',name:\''+b.name+'\'});">['+c+']</span><span class="chnick" style="font-size:12px;" onclick="ln.config.open();">&#10093;'+ln.vars.name+'&#10092;</span></div>').appendTo('#chattxt'),log('<span style="color: aqua; text-shadow: 0 0 1px aqua, 0 0 5px aqua;">&#10093;</span><span style="color:yellow; text-shadow: 0 0 1px yellow, 0 0 5px yellow; font-size: 18px;">'+b.name+'</span> - <span style="color:'+ln.vars.color+'; text-shadow: 0 0 3px '+ln.vars.color+'; font-size: 18px;">'+c+'</span><span style="color: aqua; text-shadow: 0 0 1px aqua, 0 0 5px aqua;">&#10092;</span>'),document.title='Legenda! Margonem MMORPG';var d=setInterval(function(){$('#loots').is(':visible')||(document.title='*L* | Margonem MMORPG',$('div#loots').css({'box-shadow':'none',animation:'none'}),clearInterval(d),$('style.ln_anim').length&&$('style.ln_anim').remove())},2e3)}else if(/Jeden ze składnikĂłw legendarnej zbroi wykuwanej przez krasnoludy/.test(b.stat)){'0'!=ln.vars.settings[0]&&ln.audio('1'),document.title='Kamie\u0144! Margonem MMORPG';var d=setInterval(function(){$('#loots').is(':visible')||(document.title='*K* | Margonem MMORPG',clearInterval(d))},3e3)}}})(lootItem),g.loadQueue.push({fun:function(){ln.config.load(),setTimeout(function(){ln.news.engine()},5e3)}}),$('<style>input.ln {border: 1px solid black; background: rgba(0,0,0,0.3); padding: 2px 4px; transition: 0.3s;} input[type="text"]:focus {background: rgba(0,0,0,0.4);} select.color_pick {border: 1px solid black; background: rgba(0,0,0,0.3);} select.color_pick option{text-align:center;}</style>').appendTo('head'),!ln.config.colors[localStorage.ln_color]&&localStorage.ln_color&&(localStorage.removeItem('ln_color'),message(goldTxt('# '+ln.vars.name+' #')),message('Kolor, kt\xF3ry wybra\u0142e\u015B nie jest ju\u017C dost\u0119pny. Wybierz nowy!'))},config:{load:function(){var a=localStorage.ln_pos?localStorage.ln_pos.split('|'):'5|5'.split('|');$('<div class="clasick_ln"></div>').css({background:'url(http://'+ln.vars.world+'.margonem.pl/obrazki/itemy/but/buty135.gif)',width:'32px',height:'32px',zIndex:'500',position:'absolute',left:a[0]+'px',top:a[1]+'px',transition:'transform 0.5s, filter 0.5s'}).appendTo('body').draggable({start:function(){g.lock.add('ln_moving'),$(this).css('cursor','move')},stop:function(){g.lock.remove('ln_moving'),$(this).css('cursor','default'),localStorage.ln_pos=$(this).position().left+'|'+$(this).position().top}}).attr('tip','<div style="text-align:center; padding: 3px 6px;"><u style="font:14px Tahoma;">'+ln.vars.name+'</u></div>').click(function(){ln.config.open()}).mouseenter(function(){$(this).css({transform:'scale(1.1)',filter:'sepia(100%)'})}).mouseleave(function(){$(this).css({transform:'scale(1.0)',filter:'sepia(0%)'})})},open:function(){var c;for(i in ln.config.colors)c+='<option value="'+i+'" style="background-color:rgba(255,255,255,0.6);text-shadow: 0 0 2px black, 0 0 4px '+i+';color:'+i+'"># '+ln.config.colors[i]+'</option>';showEnWindow(ln.vars.name,'<div style="text-align:center;"><h3>Klanowe komunikaty</h3><input type="text" class="ln ln_prefix" placeholder="Prefix" value="'+ln.vars.prefix+'" tip="Minimum 4 znaki" /> NAZWA <input type="text" class="ln ln_suffix" placeholder="Suffix" value="'+ln.vars.suffix+'" tip="Minimum 1 znak" /><br /><label><input type="checkbox" class="ln ln_clanMsg" '+('true'==ln.vars.settings[1]?'checked':'')+'/>Nie informuj klanu</label><br /><table style="width: 90%; border-collapse:collapse; margin: 3px auto;"><tr><td style="border-right: 1px solid rgba(0,0,0,0.2); vertical-align: baseline;"><h3>Obramowanie \u0142up\xF3w</h3><select class="color_pick"><option value="default" disabled selected>Wybierz kolor...</option>'+c+'</select><br / ><label><input type="checkbox" class="ln ln_animate" '+('true'==ln.vars.settings[3]?'checked':'')+'/>Wy\u0142\u0105cz animacje okna \u0142up\xF3w</label></td><td style="border-left: 1px solid rgba(0,0,0,0.5); vertical-align: baseline;"><h3>D\u017Awi\u0119ki</h3><div style="width: 120px; margin: 0px auto;"><input type="range" class="ln_volrange" style="width: 60px;" min="0.0" max="1.0" step="0.1" value="'+ln.vars.settings[0]+'" oninput="$(\'.volume_level\').text(this.value*100+\'%\');" /><span class="volume_level" style="vertical-align:middle;font-size:16px;">'+100*ln.vars.settings[0]+'%</span></div><span style="cursor:pointer;" onclick="if($(\'input.ln_volrange\').val()==\'0\'){$(\'input.ln_volrange\').val(\'0.9\'); $(\'.volume_level\').text(\'90%\');}else{$(\'input.ln_volrange\').val(\'0\'); $(\'.volume_level\').text(\'0%\');}">&#128263; Wycisz</span></td></tr></table><label><input type="checkbox" class="ln ln_showMsg" '+('true'==ln.vars.settings[2]?'checked':'')+'/>Pokazuj wiadomo\u015B\u0107 na \u015Brodku ekranu</label><br /><table style="width: 90%; border-collapse:collapse; margin: 3px auto;"><tr><td><span style="font-size:16px;"><span style="cursor:pointer; display: block; font-size: 24px; text-shadow: -1px -1px 1px black, 3px 3px 2px black, 0 0 6px black;" onclick="ln.news.show();">v'+ln.vars.version+'</span> &copy; <a href="https://www.margonem.pl/?task=profile&id=2286497" target="_blank">cLAsick</a></span></td><td>'+drawButton('aktualne ustawienia','ln.config.current();')+'<br />'+drawButton('Zapisz','ln.config.save({prefix:$(\'input.ln_prefix\').val(),suffix:$(\'input.ln_suffix\').val(),color:$(\'select.color_pick\').val(),clanMsg:$(\'input.ln_clanMsg\')[0].checked,showMsg:$(\'input.ln_showMsg\')[0].checked,vol:$(\'input.ln_volrange\')[0].value,anim:$(\'input.ln_animate\')[0].checked});')+drawButton('Reset','ln.reset(); hideEnWindow();')+'</td></tr></table></div>')},current:function(){showEnWindow(ln.vars.name,'<div style="text-align:center;"><h2 style="margin-bottom: 5px;">Aktualne ustawienia</h2><b>Klanowy komunikat</b><br />&#171;'+hero.nick+'&#187; '+ln.vars.prefix+'NAZWA'+ln.vars.suffix+'<br /><b>Obramowanie \u0142up\xF3w: </b><span style="display:inline-block;height:15px;width:15px;border-radius:5px;vertical-align:middle; box-shadow:0 0 1px 1px black;margin:1px;background:'+ln.vars.color+'" tip="'+ln.config.colors[ln.vars.color]+'"></span>'+('false'==ln.vars.settings[3]?' (animowane)':'')+'<br />Informuj klan: '+('true'==ln.vars.settings[1]?'<span style="color:maroon;text-shadow:0 0 2px black;">NIE</span>':'<span style="color:green;text-shadow:0 0 2px black;">TAK</span>')+'<br />D\u017Awi\u0119ki: '+('0'==ln.vars.settings[0]?'<span style="color:maroon;text-shadow:0 0 2px black;">NIE</span>':'<span style="color:green;text-shadow:0 0 2px black;">TAK</span>')+' ('+100*ln.vars.settings[0]+'%)<br />Wiadomo\u015B\u0107 na \u015Brodku: '+('false'==ln.vars.settings[2]?'<span style="color:maroon;text-shadow:0 0 2px black;">NIE</span>':'<span style="color:green;text-shadow:0 0 2px black;">TAK</span>')+'<br />'+drawButton('Wr\xF3\u0107','ln.config.open();')+drawButton('Wyjd\u017A','hideEnWindow();')+'</div>')},save:function(a){4<=a.prefix.length&&1<=a.suffix.length?(localStorage.ln_prefix=a.prefix,localStorage.ln_suffix=a.suffix,localStorage.ln_settings=a.vol+'|'+a.clanMsg+'|'+a.showMsg+'|'+a.anim,'default'!=a.color&&(localStorage.ln_color=a.color,ln.vars.color=a.color),ln.vars.refresh(),message(goldTxt('# '+ln.vars.name+' #')),message('Zmiany zosta\u0142y zapisane'),hideEnWindow()):(message(goldTxt('# '+ln.vars.name+' #')),message('<span style="color:maroon";>Prefix: minimum 4 znaki</span>'),message('<span style="color:maroon";>Suffix: minimum 1 znak</span>'))},colors:{'#FA0349':'R\xF3\u017Cowy',red:'Czerwony',purple:'Fioletowy','#00bfff':'Jasnoniebieski','#19247c':'Niebieski',lime:'Jasnozielony','#2E8B57':'Morska ziele\u0144','#ffef00':'\u017B\xF3\u0142ty',orange:'Pomara\u0144czowy','#A0522D':'Br\u0105zowy','#2E2E2E':'Ciemnoszary','#E6B940':'Musztardowy'}},audio:function(a){if('0'==a||'1'==a){$('audio.ln_handler').length||$('<audio class="ln_handler" type="audio/mp3"></audio>').appendTo('body');var b=$('audio.ln_handler').attr('src',ln.vars.sound[a]+'?v='+ln.vars.version).get(0);b.pause(),b.currentTime=0,b.volume=parseFloat(ln.vars.settings[0]),b.oncanplay=function(){b.play()},b.onerror=function(){message('Ups, wyst\u0105pi\u0142 b\u0142\u0105d podczas wczytywania d\u017Awi\u0119ku.')}}else message('Ups, wyst\u0105pi\u0142 b\u0142\u0105d podczas wczytywania d\u017Awi\u0119ku.')},msg:{send:function(a){_g('chat&c=/k '+ln.vars.prefix+' '+a+' '+ln.vars.suffix+' - '+ln.vars.name)},share:function(a){'true'==getCookie('ln_shared_'+a.id)?(message(goldTxt('# '+ln.vars.name+' #')),message('Te numerki ju\u017C udost\u0119pniono!')):showEnWindow(ln.vars.name,'<div style="text-align:center;">Na kt\xF3rej zak\u0142adce chatu chcesz si\u0119 podzieli\u0107 numerkami tego przedmiotu?<h2 style="color:'+ln.vars.color+'; text-shadow: 0 0 1px black, 0 0 5px;">&#10093; '+a.name+' &#10092;</h2><input type="text" class="ln" value="'+a.id+'" tip="Kliknij, aby skopiowa\u0107" onclick="var text=$(this);text.select(); document.execCommand(\'Copy\');$(\'span.ln_copied\').fadeIn();" readonly /><br /><span class="ln_copied" style="display:none;">Skopiowano!</span><br />'+drawButton('Og\xF3lny','setCookie(\'ln_shared_'+a.id+'\', true); _g(\'chat&c='+esc(a.name+' || '+a.id+' || '+ln.vars.name)+'\'); hideEnWindow();')+(0==g.party?'':' '+drawButton('Grupowy','setCookie(\'ln_shared_'+a.id+'\', true); _g(\'chat&c='+esc('/g '+a.name+' || '+a.id+' || '+ln.vars.name)+'\'); hideEnWindow();'))+' '+drawButton('Rezygnuj','hideEnWindow();')+'</div>')}},news:{engine:function(){'undefined'!=typeof Storage&&localStorage.ln_version?localStorage.ln_version!=ln.vars.version&&ln.news.show():!localStorage.ln_version&&ln.news.show()},show:function(){var a={plus:['Animacja obramowania okna \u0142up\xF3w','Poprawiony system odtwarzania d\u017Awi\u0119k\xF3w z mo\u017Cliwo\u015Bci\u0105 zmiany poziomu g\u0142o\u015Bno\u015Bci oraz poprawa d\u017Awi\u0119k\xF3w dla przegl\u0105darek <i>Chrome</i> oraz <i>Opera</i>','Opcja wy\u015Bwietlania wiadomo\u015Bci po zdobyciu przedmiotu legendarnego'],minus:[]},b='<b style="color:green;text-shadow: 0 0 2px green;">Dodano:</b><br />';if(0<a.plus.length)for(x in a.plus)b+='<span style="color:green;text-shadow: 0 0 2px green;">+</span> '+a.plus[x]+'.<br />';else b+='brak';if(0<a.minus.length)for(x in b+='<b style="color:maroon;text-shadow: 0 0 2px maroon;">Usuni\u0119to:</b><br />',a.minus)b+='<span style="color:maroon;text-shadow: 0 0 2px maroon;">-</span> '+a.minus[x]+'.<br />';showEnWindow(ln.vars.name,'<div style="text-align:center;"><h3>Zmiany w wersji <u>'+ln.vars.version+'</u></h3>'+b+'<br /><span style="color:red;text-shadow:0 0 1px red, 0 0 3px red;" onclick="ln.reset();">Po tej aktualizacji <u>zalecane</u> jest zresetowanie ustawie\u0144 dodatku (kliknij)</span><hr /><i onclick="extManager.task(\'add_list\');extManager.callDetails(53253);hideEnWindow();">&#171;POLUB&#187; dodatek, je\u015Bli Ci si\u0119 podoba &#128077;<br />Pozostaw r\xF3wnie\u017C cenny komentarz!</i> &#x1F60A;</div>'),localStorage.ln_version=ln.vars.version}},vars:{version:'1.0.6',name:'Mam legendę!',sound:[localStorage.ln_sound?localStorage.ln_sound.split('|')[1]:'https://raw.githubusercontent.com/clasicker/addons/master/ln_legendarny.mp3',localStorage.ln_sounds?localStorage.ln_sounds.split('|')[2]:'https://raw.githubusercontent.com/clasicker/addons/master/ln_kamien.mp3'],world:location.host.split('.')[0],refresh:function(){ln.vars.color=localStorage.ln_color?localStorage.ln_color:'red',ln.vars.settings=localStorage.ln_settings?localStorage.ln_settings.split('|'):'0.9|false|false|false'.split('|'),ln.vars.prefix=localStorage.ln_prefix?localStorage.ln_prefix:'Wooow! Spad\u0142a legenda!!! [',ln.vars.suffix=localStorage.ln_suffix?localStorage.ln_suffix:']'}},reset:function(){['prefix','suffix','pos','color','version','sound','settings'].forEach(b=>localStorage.removeItem('ln_'+b)),message(goldTxt('# '+ln.vars.name+' #')),message('Ustawienia dodatku zosta\u0142y zresetowane'),ln.vars.refresh()},init:function(){'undefined'==typeof Storage&&log('[<b>'+ln.vars.name+'</b>] W\u0142\u0105cz dost\u0119p do localStorage lub zaktualizuj przegl\u0105dark\u0119, by w pe\u0142ni korzysta\u0107 z funkcji dodatku.',1),ln.engine(),ln.vars.refresh()}};ln.init();
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