Advertisement
Guest User

Untitled

a guest
Sep 19th, 2018
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. javascript: units = { 'spear': 0, 'sword': 0, 'axe': 0, 'archer': 0, 'spy': 10, 'light': 0, 'marcher': 0 'heavy': 0, 'catapult': 10, 'ram': 0, 'knight': 0, 'snob': 0 }; coords = '435|705 434|705 433|703 435|701 434|702 434|700 434|698 435|698 432|698 432|700 431|700 431|704 430|705 428|703 429|703 429|700 429|699 429|698 430|698 428|699 428|696 427|696 427|694 426|694 425|694 425|697 425|699 425|700 425|701 423|693 423|692 423|691 423|696'; name = 'f'; var d = document; function N(a) { return (d.getElementsByName(a)[0]); } function max(a) { return parseInt(d.units[a].nextSibling.nextSibling.innerHTML.match(/\d+/), 10); } if (N('x') && N('x').value == '') { if (!N(name)) $('h3').append('<span name="' + name + '" style="color:green;font-size:11px;"></span>'); coords = coords.split(' '); index = 0; farmcookie = d.cookie.match('(^|;) ?' + name + '=([^;]*)(;|$)'); if (farmcookie != null) index = parseInt(farmcookie[2]); N(name).innerHTML = ' Tinta nr.' + (index + 1) + ' (' + coords[index] + '). Total: ' + coords.length; if (index >= coords.length) { N(name).style.color = '#F00'; N(name).innerHTML = ' Ai ajuns la capatul listei!'; } else N(name).style.color = 'green'; if (index >= coords.length) index = 0; coords = coords[index]; coords = coords.split('|'); index++; cookie_date = new Date(2051, 08, 11); d.cookie = name + '=' + index + ';expires=' + cookie_date.toGMTString(); N('x').value = coords[0]; N('y').value = coords[1]; for (i in units) { if (N(i)) { u = parseInt(units[i], 10); n = max(i) + u; if (isNaN(u)) insertUnit(N(i), max(i)); else if (u < 0) n < 0 ? '' : insertUnit(N(i), n); else if (max(i) >= units[i]) insertUnit(N(i), u); } } } document.forms.units.attack.click(); void 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement