Advertisement
WoXiii

Untitled

Feb 23rd, 2018
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.48 KB | None | 0 0
  1. javascript:
  2. coords = "416|378 413|369 415|370 416|369 418|369 418|371 419|371 419|370 420|371 420|369 420|368 420|367 421|370 425|372 424|369 424|368 425|368 425|369 425|367 427|367 427|369 449|362 424|364 423|365 425|366 424|366 425|367 444|359 445|359 446|359 447|359 448|360 449|359 424|342 426|346 424|346 425|346 424|347 425|347 422|348 426|354 424|353 427|351 428|344 429|344 429|341 428|340 431|341 429|340 433|338 437|337 436|336 435|336 434|336 437|335 431|357 433|361 433|363 433|364 435|360 438|359 438|355 439|355 439|354 441|353 442|355 441|353 442|351 443|352 444|356 445|356 445|355 444|355 446|350 434|364 430|358 427|360 434|361 437|361 438|362 439|364 438|363 437|363 437|364 436|365 434|366 433|367 431|367 427|368 428|368 431|369 439|367 439|366 439|364 441|367 442|369".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",100); //Topornicy
  9. units("archer",0); //Lucznicy
  10. units("spy",0); //Zwiadowcy
  11. units("light",50); //Lekka Kawaleria
  12. units("marcher",0); //Lucznicy na Koniu
  13. units("heavy",0); //Ciezka Kawaleria
  14. units("ram",0); //Tarany
  15. units("catapult",12) //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