Travian under-attack check

By m4rtini Last update Dec 19, 2008 — Installed 121,066 times.


Script Summary: Travian under-attack check

set this to false to make it not freeze the screen when running a check, village hop more probable then!

var freezeWhenCheck = true;

bugfix:
- bug that made the freezescreen to not disappear and the second time on the same page.

Now there is a possibility to call your own external pages\scripts to do some kind of response(like sending you a email) when you're under attack.

var externalUrl = "";
var externalPostData = "";
var runEveryTime = false;

These are the parameters that you have to edit.
externalUrl: the url to your script, here you can also include GET variables to the end like this www.url.com?var=value&var2=value2

externalPostData: The postdata to be sent, ex: var=value&var2=value2

runEveryTime; Defines if the external script should run every time it detects that you're under attack. if not it will only run the first time it detect the attack.