SHARE
TWEET

Fake VFINAL WORK PLS TY

SophieDebleeckere Jun 3rd, 2020 1,256 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:
  2.  
  3.  
  4. var coords = "500|506";
  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. let $coordsInput = $('input[data-type=player]');
  22.     $coordsInput.val(coords);
  23.     $coordsInput.submit();
  24.         selectAllUnits(false);
  25.         tcat = getTroop("catapult");
  26.         tram = getTroop("ram");
  27.         theavy = getTroop("heavy");
  28.         tlight = getTroop("light");
  29.         tsword = getTroop("sword");
  30.         tarcher = getTroop("archer");
  31.         tspear = getTroop("spear");
  32.         taxe = getTroop("axe");
  33.         tscout = getTroop("spy");
  34.         if (tscout >= 10) {
  35.             d.forms[0].spy.value = 10;
  36.         }
  37.         else
  38.         {
  39.             //not enough scouts, next village
  40.             window.location.assign("/game.php?village=n"+game_data.village.id+"&screen=place")
  41.         }
  42.         if (tcat > Math.ceil(((game_data.village.points/100)-20)/8)) {
  43.             d.forms[0].catapult.value = Math.ceil(((game_data.village.points/100)-20)/8);
  44.         } else if (tram > Math.ceil(((game_data.village.points/100)-20)/5)) {
  45.             d.forms[0].ram.value = Math.ceil(((game_data.village.points/100)-20)/5);
  46.         } else
  47.         {
  48.             //not enough scouts, next village
  49.             window.location.assign("/game.php?village=n"+game_data.village.id+"&screen=place")
  50.         }
  51.     }
  52. }
  53. void(0);
  54.  
  55. function getTroop(a) {
  56.     return parseInt(d.units[a].nextSibling.nextSibling.innerHTML.match(/\d+/), 10);
  57. }
  58. void(0);
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top