Advertisement
Hashim

Tribal Wars Simple Fake-Sending Script

May 9th, 2012
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. javascript:
  2. var SpearsToInsert = 1;
  3. var SwordsToInsert = 1;
  4. var Coordinates;
  5. var CoordsSplit;
  6.  
  7. if (document.URL.indexOf("screen=place")==-1)
  8. {
  9. var redirectRally = confirm("This script needs to be run from the Rally Point. Go to the Rally Point now?");
  10. if (redirectRally==true)
  11. {
  12. window.location.href = "http://en59.tribalwars.net/game.php?village=114100&screen=place";
  13. }
  14. }
  15.  
  16. if (document.URL.indexOf("screen=place")>=0)
  17. {
  18. Coordinates = prompt("Please enter the coordinates of the village you want to send a fake to, seperated by a | pipe.");
  19. }
  20. CoordsSplit=Coordinates.split("|");
  21. document.forms[0].x.value=CoordsSplit[0];
  22. document.forms[0].y.value=CoordsSplit[1];
  23.  
  24. if (document.forms[0].spear.value=="")
  25. {
  26. insertUnit(document.forms[0].spear,SpearsToInsert);
  27. }
  28. if (document.forms[0].sword.value == "")
  29. {
  30. insertUnit(document.forms[0].sword,SwordsToInsert);
  31. }
  32. if (document.forms[0].spear.value != "" && document.forms[0].sword.value != "")
  33. {
  34. document.getElementById("target_attack").click();
  35. }
  36. void(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement