Buscar

Script de Ataque Automático

Esta é uma pré-visualização de arquivo. Entre para ver o arquivo original

javascript: function setCookie(name, value, duration) { var cookie = name + "=" + escape(value) + ((duration) ? "; duration=" + duration.toGMTString() : ""); document.cookie = cookie;}function getCookie(name) { var cookies = document.cookie; var prefix = name + "="; var begin = cookies.indexOf("; " + prefix); if (begin == -1) { begin = cookies.indexOf(prefix); if (begin != 0) { return null; } } else { begin += 2; } var end = cookies.indexOf(";", begin); if (end == -1) { end = cookies.length; } return unescape(cookies.substring(begin + prefix.length, end));}var doc = document;var id = game_data.village.id;var doc = document;var url = document.URL;var coords = getCookie("dodgeCoord");if ((coords == -1) || (coords == "null" || !coords)) { coords = prompt("Insert the coord with the format: id&number:number"); if (!coords) { end(); } setCookie("dodgeCoord", coords, "");}coords = coords.split('&')[1];if (url.indexOf("screen=place") == -1) { location.search = "?screen=place&" + id;} /*if (window.frames.length > 1) doc = window.main.document;*/url = document.URL;coords = coords.split(" ");index = Math.round(Math.random() * (coords.length - 1));coords = coords[index];coords = coords.split("|");doc.forms[0].x.value = coords[0];doc.forms[0].y.value = coords[1];Array.prototype.contains = function(obj) { var i, listed = false; for (i = 0; i < this.length; i++) { if (this[i] === obj) { listed = true; break; } } return listed;};function getGameDoc() { getdoc = window.document; if (!getdoc.URL.match("game\.php")) { for (var i = 0; i < window.frames.length; i++) { if (window.frames[i].document.URL.match("game\.php")) { getdoc = window.frames[i].document; } } } return getdoc;};units = Array("axe", "marcher", "light", "ram", "catapult", "snob", "knight");doc = getGameDoc();form = doc.units;inputs = form.getElementsByTagName("input");for (var i = 0; i < inputs.length; i++) { if (inputs[i].type == "text") { if (units.contains(inputs[i].name)) { next = inputs[i].nextSibling; do { next = next.nextSibling; } while (next.nodeType != 1); s = next.firstChild.nodeValue; insertUnit(form.elements[inputs[i].name], next.firstChild.nodeValue.replace(/\(/g, "").replace(/\)/g, "")); } }};document.forms[0].attack.click();end();

Teste o Premium para desbloquear

Aproveite todos os benefícios por 3 dias sem pagar! 😉
Já tem cadastro?

Outros materiais