Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var d = new Date(); d.setTime(d.getTime() + 3600000 * 24 * 30);
- if(getCookie('acceptRlg') == null) setCookie('acceptRlg','false',d);
- var acceptRlg = mAlert;
- mAlert = function(a,c,d,b){
- acceptRlg(a,c,d,b);
- if(getCookie('acceptRlg') == 'true' && a.indexOf('opuścisz grę') != -1) $('#a_ok').click();
- };
- g.loadQueue.push({fun: function () {
- $('<div id="checkboxrlg">Automatyczne wylogowywanie</div>').appendTo('#cfg_options').click(function(){
- if($('#checkboxrlg').attr('style') == 'background-position: 0px -22px'){
- $('#checkboxrlg').attr('style', 'background-position: 0px 0px');
- setCookie('acceptRlg','false',d)
- }else{
- $('#checkboxrlg').attr('style', 'background-position: 0px -22px');
- setCookie('acceptRlg','true',d)
- }
- });
- if(getCookie('acceptRlg') == 'true') $('#checkboxrlg').attr('style', 'background-position: 0px -22px');
- else $('#checkboxRlg').attr('style', 'background-position: 0px 0px');
- }, data: ''});
- $(document).keyup(function(e){
- if(e.which==75 && e.target.tagName!="TEXTAREA" && e.target.tagName!='INPUT'){
- for(n in g.other){
- if ((Math.abs(hero.x - g.other[n].x) <= 1 && Math.abs(hero.y - g.other[n].y) <= 1) && !isset(g.party[n])){
- _g("party&a=inv&id="+n)
- }
- }
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement