Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2018
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.32 KB | None | 0 0
  1. javascript:
  2. coords = "596|560 596|564 596|567 596|568 596|570 596|572 597|556 597|561 598|545 598|558 598|563 598|565 598|566 598|567 598|571 598|572 599|553 599|557 599|562 599|565 599|567 599|568 599|569 599|570 599|571 599|572 600|546 600|562 600|566 601|546 601|557 601|558 601|567 601|568 601|572 602|548 602|549 602|551 602|556 602|562 602|563 602|568 602|569 603|546 603|554 603|558 603|561 603|565 603|567 603|569 603|571 604|547 604|549 604|551 604|553 604|554 604|565 604|566 604|567 604|568 604|571 605|549 605|557 605|559 605|561 605|563 605|565 605|571 606|546 606|548 606|551 606|560 606|561 606|562 606|564 606|569 606|572 607|546 607|555 607|556 607|561 607|565 607|567 607|570 608|548 608|552 608|553 608|558 608|560 608|562 608|564 609|546 609|548 609|549 609|553 609|554 609|556 609|563 609|564 609|567 609|568 609|572 610|547 610|548 610|549 610|550 610|552 610|553 610|560 610|563 610|564 610|568 611|549 611|564 612|548 612|549 612|550 612|553 612|554 612|557 612|563 612|565 612|566 612|572 613|550 613|551 613|559 613|562 613|566 613|567 613|571 613|572 614|548 614|553 614|556 614|557 614|561 614|563 614|564 614|567 614|568 614|571 614|572 615|548 615|556 615|559 615|561 615|565 615|567 616|546 616|554 616|567 617|550 617|552 617|555 617|559 617|561 617|562 617|567 618|547 618|552 618|553 618|558 618|567 619|545 619|547 619|550 619|551 619|553 619|555 619|556 619|560 619|562 619|563 619|568 619|570 619|571 620|547 620|548 620|551 620|556 620|562 620|563 620|567 620|568 621|551 621|559 621|566 621|567 621|568 621|569 621|570 621|571 622|559 622|561 622|563 622|572 623|548 623|552 623|558 623|564 623|568 623|571 623|572".split(" ");
  3. index = Math.round(Math.random() * (coords.length - 1));
  4. document.getElementsByClassName("target-input-field target-input-autocomplete ui-autocomplete-input")[0].value = coords[index];
  5.  
  6. units("spear",0); //Pikinierzy
  7. units("sword",0); //Miecznicy
  8. units("axe",0); //Topornicy
  9. units("archer",0); //Lucznicy
  10. units("spy",5); //Zwiadowcy
  11. units("light",0); //Lekka Kawaleria
  12. units("marcher",0); //Lucznicy na Koniu
  13. units("heavy",0); //Ciezka Kawaleria
  14. units("ram",0); //Tarany
  15. units("catapult",0) //Katapulty
  16. units("snob",0); //Szlachcic
  17.  
  18. function units(name, value) {
  19. if(document.getElementById("unit_input_"+name)!== null)
  20. {document.getElementById("unit_input_"+name).value=value;}}
  21. end;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement