Advertisement
Guest User

Untitled

a guest
Apr 24th, 2019
254
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. var walnaleb;
  2. g.loadQueue.push({fun: function () {
  3. var d = new Date();
  4. d.setTime(d.getTime() + 3600000 * 24 * 30);
  5. if (getCookie('nooby-na-leb') == null) setCookie('nooby-na-leb', 'false', d);
  6. walnaleb = getCookie('nooby-na-leb');
  7.  
  8. console.log(walnaleb)
  9.  
  10. if(walnaleb == 'true'){
  11. document.getElementById('noobynaleb').innerHTML ='on';
  12. document.getElementById('noobynaleb').style.color = 'green';
  13. } else {
  14. document.getElementById('noobynaleb').innerHTML = 'off';
  15. document.getElementById('noobynaleb').style.color = 'red';
  16. }
  17.  
  18.  
  19. },data: ''});
  20. $('<div ></div>').attr({ 'id':'noobynaleb', 'tip':'Auto atakowanie wrogów'}).css({ 'position':'absolute', 'left':'10px','top':'10px', 'color':'red', 'background':'black'}).appendTo('#panel')
  21.  
  22. document.getElementById('noobynaleb').addEventListener('mousedown', function(e){
  23. if(e.which ==1){
  24.  
  25. if(this.innerHTML=="off"){
  26. this.innerHTML ='on'; message('Atakowanie wrogów włączone');
  27. this.style.color = 'green';
  28. setCookie('nooby-na-leb', 'true', d);
  29. } else {
  30. setCookie('nooby-na-leb', 'false', d);
  31. this.innerHTML ='off'; message('Atakowanie wrogów wyłączone');
  32. this.style.color = 'red';
  33.  
  34. }
  35.  
  36. }
  37. })
  38. var newOther___M = newOther;
  39. newOther = function (b) {
  40. for (var i in b) {
  41. if ((b[i].relation == 'en' || b[i].relation == 'cl-en' ) ) { //map.pvp == 2
  42.  
  43. setInterval( function(){
  44.  
  45. if (((Math.abs(hero.x - b[i].x) <= 2) && (Math.abs(hero.y - b[i].y) <= 2) &&(walnaleb=='true') ) ){
  46.  
  47. _g("fight&a=attack&id="+i);
  48. }
  49. }, 200)
  50. }
  51. };
  52. newOther___M(b);
  53. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement