Travian under-attack check T3.5

By j000 Last update Jul 10, 2009 — Installed 69,762 times.

help

in
Subscribe to help 15 posts, 10 voices



periklis87 User

how can i make this script check for attacks every 3 minutes (i am asking who to manipulate these :
window.addEventListener("load", underAttackCheck, true);
window.setInterval(function(){underAttackCheck()}, 10000);

window.setInterval(function(){reload()},15*60*1000); ) thanks

 
JoeSimmons Scriptwright

var minutes = 3;
window.setInterval(function(){underAttackCheck()}, minutes*1000*60);

 
dadada User

there is no "var minutes" in the script :/

 
j000 Script's Author

You need to change the line

window.setInterval(function(){underAttackCheck()}, 10000);

to
var minutes = 3;
window.setInterval(function(){underAttackCheck()}, minutes*1000*60);

or just
window.setInterval(function(){underAttackCheck()}, 180000);

:)

 
Bundit User

How to change script,?

 
CliCtoRiX User

if the Interval function is in milliseconds , why the defoult time to check is 10,000....does it means it do it each 10 seconds?
i need an explanation plz!

 
j000 Script's Author

Sorry! :)
Try the modified version, I added an variable to control this :)
Function is launched every 10 sec, but it checks for attacks in bigger intervals. So if you have this: window.setInterval(function(){underAttackCheck()}, 180000); the function will be launched every 3 minutes, but it wont change the intervals between checks.

 
CliCtoRiX User

how can i modified the times between checks?
can u post the instruction and the lines we need to modified plz?
thx!

p.d, witch one is the modified script?

 
j000 Script's Author

Newest version is always here :P
Just install script once again.
To modify time between checks you need to insert new value here:

//time in minutes between checks. USE RANDOM! It makes it doesn't look like the script.
//10 + Math.floor(Math.random()*5) will check for attacks between 10 and 15 minutes
var timetocheck = 10 + Math.floor(Math.random()*5);

I.e. If you're want to check every 3-5 minutes: var timetocheck = 3 + Math.floor(Math.random()*2);

 
dirty71 User

ok, but can you tell how am i suppose to add this to source code? How to edit this script?

 
j000 Script's Author

right click on monkey's head (greasemonkey icon) and select Manage scripts (or whatever, I'm using different language version). Select Travian under-attack check and press edit.

 
ftc User
ieWindows

Hello, where can I set where are my troops going?

 
j000 Script's Author
FirefoxWindows

You can't. This script will ONLY inform you about incoming attacks.

 
skuzmenk User
FirefoxWindows

Hello.

How to use email notification in this script?

 
Bren505 User
FirefoxWindows

Hi, is this plugin still working?

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel