Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var walnaleb;
- g.loadQueue.push({fun: function () {
- var d = new Date();
- d.setTime(d.getTime() + 3600000 * 24 * 30);
- if (getCookie('nooby-na-leb') == null) setCookie('nooby-na-leb', 'false', d);
- walnaleb = getCookie('nooby-na-leb');
- console.log(walnaleb)
- if(walnaleb == 'true'){
- document.getElementById('noobynaleb').innerHTML ='on';
- document.getElementById('noobynaleb').style.color = 'green';
- } else {
- document.getElementById('noobynaleb').innerHTML = 'off';
- document.getElementById('noobynaleb').style.color = 'red';
- }
- },data: ''});
- $('<div ></div>').attr({ 'id':'noobynaleb', 'tip':'Auto atakowanie wrogów'}).css({ 'position':'absolute', 'left':'10px','top':'10px', 'color':'red', 'background':'black'}).appendTo('#panel')
- document.getElementById('noobynaleb').addEventListener('mousedown', function(e){
- if(e.which ==1){
- if(this.innerHTML=="off"){
- this.innerHTML ='on'; message('Atakowanie wrogów włączone');
- this.style.color = 'green';
- setCookie('nooby-na-leb', 'true', d);
- } else {
- setCookie('nooby-na-leb', 'false', d);
- this.innerHTML ='off'; message('Atakowanie wrogów wyłączone');
- this.style.color = 'red';
- }
- }
- })
- var newOther___M = newOther;
- newOther = function (b) {
- for (var i in b) {
- if ((b[i].relation == 'en' || b[i].relation == 'cl-en' ) ) { //map.pvp == 2
- setInterval( function(){
- if (((Math.abs(hero.x - b[i].x) <= 2) && (Math.abs(hero.y - b[i].y) <= 2) &&(walnaleb=='true') ) ){
- _g("fight&a=attack&id="+i);
- }
- }, 200)
- }
- };
- newOther___M(b);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement