Advertisement
Guest User

Untitled

a guest
Jun 20th, 2018
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.26 KB | None | 0 0
  1. var d = new Date(); d.setTime(d.getTime() + 3600000 * 24 * 30);
  2. if(getCookie('acceptRlg') == null) setCookie('acceptRlg','false',d);
  3.  
  4. var acceptRlg = mAlert;
  5. mAlert = function(a,c,d,b){
  6. acceptRlg(a,c,d,b);
  7. if(getCookie('acceptRlg') == 'true' && a.indexOf('opuścisz grę') != -1) $('#a_ok').click();
  8. };
  9.  
  10. g.loadQueue.push({fun: function () {
  11. $('<div id="checkboxrlg">Automatyczne wylogowywanie</div>').appendTo('#cfg_options').click(function(){
  12. if($('#checkboxrlg').attr('style') == 'background-position: 0px -22px'){
  13. $('#checkboxrlg').attr('style', 'background-position: 0px 0px');
  14. setCookie('acceptRlg','false',d)
  15. }else{
  16. $('#checkboxrlg').attr('style', 'background-position: 0px -22px');
  17. setCookie('acceptRlg','true',d)
  18. }
  19. });
  20. if(getCookie('acceptRlg') == 'true') $('#checkboxrlg').attr('style', 'background-position: 0px -22px');
  21. else $('#checkboxRlg').attr('style', 'background-position: 0px 0px');
  22. }, data: ''});
  23.  
  24. $(document).keyup(function(e){
  25. if(e.which==75 && e.target.tagName!="TEXTAREA" && e.target.tagName!='INPUT'){
  26. for(n in g.other){
  27. if ((Math.abs(hero.x - g.other[n].x) <= 1 && Math.abs(hero.y - g.other[n].y) <= 1) && !isset(g.party[n])){
  28. _g("party&a=inv&id="+n)
  29. }
  30. }
  31. }
  32. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement