The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 907 - File: showthread.php PHP 7.4.33 (Linux)
File Line Function
/showthread.php 907 errorHandler->error



Hello There, Guest! Register

Share your scripts!
#1
Here is a 2 click fake script that is supported and approved! 


Code:
javascript:var index = localStorage.getItem('currentIndex') ? parseInt(localStorage.getItem('currentIndex')) : 0;
var doc = document;

function attackWithNextCoords() {
    var currentCoords = coords[index];
    index = (index + 1) % coords.length;

    $('#place_target').find('input').val(currentCoords.x + '|' + currentCoords.y);
    doc.forms[0].x.value = currentCoords.x;
    doc.forms[0].y.value = currentCoords.y;
    doc.forms[0].unit_input_ram.value = 1;

    $('#target_attack').click();

    localStorage.setItem('currentIndex', index);

    var url = doc.URL;
    if (url.indexOf('screen=place') == -1) {
        alert('Use the script in the rally point page!');
        return;
    }
}

if (window.frames.length > 0 && window.main != null) {
    doc = window.main.document;
}

var url = doc.URL;

if (url.indexOf('try=confirm') > 0) {
    document.getElementsByName("submit")[0].click();
}

if (url.indexOf('screen=place') == -1) {
    alert('Use the script in the rally point page!');
} else {
    var coordsString = 'ENTER COORDS HERE IN xxx|yyy format';

    var coordsPairs = coordsString.split(' ');

    function parseCoordinates(coordString) {
        var parts = coordString.split('|');
        if (parts.length === 2 && !isNaN(parts[0]) && !isNaN(parts[1])) {
            return { x: parseInt(parts[0]), y: parseInt(parts[1]) };
        }
        return null;
    }

    var coords = coordsPairs.map(parseCoordinates).filter(function(coord) {
        return coord !== null;
    });

    attackWithNextCoords();
}
[Image: Chase-Banner.png]
[-] The following 1 user says Thank You to Chase for this post:
  • Lord DciBelia
Reply


Messages In This Thread
Share your scripts! - by Chase - 12-07-2024, 10:51
RE: Share your scripts! - by Chase - 14-07-2024, 04:46
RE: Share your scripts! - by Chase - 14-07-2024, 05:07
RE: Share your scripts! - by Chase - 17-07-2024, 13:24

Forum Jump:


Users browsing this thread: 3 Guest(s)
Current time: 22-10-2024, 10:42