Advertisement
SophieDebleeckere

Fake

Jun 3rd, 2020
1,387
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:
  2.  
  3.  
  4. var coords = "ENTER COORDINATES HERE SEPERATED WITH SPACES";
  5.  
  6. if (window.location.href.indexOf('&screen=place') < 0) {
  7.     //relocate
  8.     window.location.assign(game_data.link_base_pure + "place");
  9. }
  10. var name = 'fakes1';
  11. var d = (window.frames.length > 0) ? window.main.document : document;
  12. var u = document.URL;
  13. if (u.match(/screen=place/)) {
  14.     if (coords != null) {
  15.         coords = coords.split(" ");
  16.         var index = Math.round(Math.random() * (coords.length - 1));
  17.         coords = coords[index];
  18.         coords = coords.split("|");
  19.         d.forms[0].x.value = coords[0];
  20.         d.forms[0].y.value = coords[1];
  21.         selectAllUnits(false);
  22.         tcat = getTroop("catapult");
  23.         tram = getTroop("ram");
  24.         theavy = getTroop("heavy");
  25.         tlight = getTroop("light");
  26.         tsword = getTroop("sword");
  27.         tarcher = getTroop("archer");
  28.         tspear = getTroop("spear");
  29.         taxe = getTroop("axe");
  30.         tscout = getTroop("spy");
  31.         if (tscout > 10) {
  32.             d.forms[0].spy.value = 1;
  33.         }
  34.         if (tcat > 0) {
  35.             d.forms[0].catapult.value = 1;
  36.         } else if (tram > 0) {
  37.             d.forms[0].ram.value = 1;
  38.         } else if (tsword > 0) {
  39.             d.forms[0].sword.value = 1;
  40.         } else if (tspear > 0) {
  41.             d.forms[0].spear.value = 1;
  42.         } else if (taxe > 0) {
  43.             d.forms[0].axe.value = 1;
  44.         } else if (tarcher > 0) {
  45.             d.forms[0].archer.value = 1;
  46.         } else if (theavy > 0) {
  47.             d.forms[0].heavy.value = 1;
  48.         } else if (tlight > 0) {
  49.             d.forms[0].light.value = 1;
  50.         }
  51.     }
  52. }
  53.  
  54. function getTroop(a) {
  55.     return parseInt(d.units[a].nextSibling.nextSibling.innerHTML.match(/\d+/), 10);
  56. }
  57. void(0);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement