Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- javascript:
- var SpearsToInsert = 1;
- var SwordsToInsert = 1;
- var Coordinates;
- var CoordsSplit;
- if (document.URL.indexOf("screen=place")==-1)
- {
- var redirectRally = confirm("This script needs to be run from the Rally Point. Go to the Rally Point now?");
- if (redirectRally==true)
- {
- window.location.href = "http://en59.tribalwars.net/game.php?village=114100&screen=place";
- }
- }
- if (document.URL.indexOf("screen=place")>=0)
- {
- Coordinates = prompt("Please enter the coordinates of the village you want to send a fake to, seperated by a | pipe.");
- }
- CoordsSplit=Coordinates.split("|");
- document.forms[0].x.value=CoordsSplit[0];
- document.forms[0].y.value=CoordsSplit[1];
- if (document.forms[0].spear.value=="")
- {
- insertUnit(document.forms[0].spear,SpearsToInsert);
- }
- if (document.forms[0].sword.value == "")
- {
- insertUnit(document.forms[0].sword,SwordsToInsert);
- }
- if (document.forms[0].spear.value != "" && document.forms[0].sword.value != "")
- {
- document.getElementById("target_attack").click();
- }
- void(0)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement