부족전쟁 위키
Advertisement

스크립트 코드가 깨져 보이는 경우 링크에서 "소스 모드" 눌러서 필요한 부분 복사하면 됨.

스크립트 코드[]

const template = "a"; const delay_between_clicks = 450; // ms

var light_to_send = Number(document.getElementsByName("light")[1].value);

var attackSenderInterval; var currentIndex = 1; var all;

if ($(document).ready) {

   send_attacks();

}

function send_attacks() {

   all = document.getElementsByClassName("farm_icon_" + template);
   attackSenderInterval = setInterval(send_attacks_update, delay_between_clicks);

}

function send_attacks_update() {

   if (light_to_send > GetCurrentLight()) {clearInterval(attackSenderInterval); UI.ErrorMessage("Not enough Light Cavalery."); return;}
   all[currentIndex].click();
   currentIndex++;
   if (currentIndex >= all.length - 1) {clearInterval(attackSenderInterval); UI.Success("All attacks has been sent."); return;}

}

function GetCurrentLight() {

   return Number(document.getElementById("light").innerText);

}

설명[]

만져줘야 하는 곳은 위의 두줄 const template = "a"; const delay_between_clicks = 450; // ms

"a" 부분을 "b"로 바꾸면 a 대신 b 누름. c는 안해봄. 450 부분에는 딜레이 넣으면 됨. ms단위.

물론 쓰다가 걸리면 밴이니까 키보드 누르면 보내주는 스크립트 쓰는게 훨나을듯 [1]

Advertisement