Travian under-attack check

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

updates

in
Subscribe to updates 6 posts, 4 voices



m4rtini Script's Author

i will be updating several of my script in the coming month. give me some suggestions if you have some. and notify me of any bugs you may find.

 
hgilmore55 User

Martini,

Great script.... really appreciate the work you have done. Couple of things.

1.) Any chance you could make this check dorf3 for gold users. That could help speed up the script and reduce village hop.
2.) Any way to easily change the amount of time in between checks. I would like it to check every 15 minutes or so.
3.) I'm not real sure how to get this to send an email. I've read through the responses and it's not 100% clear. Is there a way to make this easier?

Thanks again!!!

 
m4rtini Script's Author

1. Yes i will definitely look into that =)
2. Yes there is. You need to change something in the source tho, i'll try to make some option in the game where you can change that in the next update.
This is the line you need to change:
var exptime = (timer + (3+Math.floor(Math.random()*3))*60*1000);
change it to:
var exptime = (timer + (14+Math.floor(Math.random()*2))*60*1000);
then it should check every 14-16 minutes.
3.
you can use this script: http://formtoemail.com/
You need your own server to upload this script to. But that can easily be found by googeling free webhost or something similar.

you have to comment out line 126 ( if(!(isset($_SERVER['HTTP_REFERER']) && !empty($_SERVER['HTTP_REFERER'])....)

then you set the variables in my script to:
var externalUrl = "the location of the script";
var externalPostData = "name=test&email=test@test.com&comments=Under_attack!"; (just an exampple)


3.) I'm not real sure how to get this to send an email. I've read through the responses and it's not 100% clear. Is there a way to make this easier?

 
hgilmore55 User

Thanks for the response. Looking forward to the updated script. :D

 
clemonj User

I have a request that could be interesting.
We ask once found to mark the attacks in a txt file or where you will:
1 when you started the attacks
2nd from that Village are parties and which should go.

It would be the best if I could also determine the basis of population and distance arena including units with which it attacks.
Perhaps it is asking too much but would be crucial in many cases.
Sorry for my english but i speak don't speak very well

 
skuzmenk User
FirefoxWindows

Hello.

How to use email notification in this script?

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