Travian AutoTask CPD EDITED

By shadowx360 Last update Sep 2, 2010 — Installed 5,302 times.

Training time randomizer

in
Subscribe to Training time randomizer 3 posts, 3 voices



Proton User
FirefoxWindows

To get hack of the MH's this is a small modification to get training times randomized. If I will have time I will do the modifications for other times too:

//Anywhere above the declatrations add:
//Waiting times - Example: it will ber one time run in 30 min next time in 33 min
var minWait = 50000; //This makes me wait at last 50 sec
var maxWait = 10 * minWait; //and at most 10 x 50 sec

//Add this to Randomize this time:

function Random(minimum, maximum) {

if (minimum == null || maximum == null) {
minimum = minWait;
maximum = maxWait;
}

/*var rand=Math.round(Math.random()*maximum);
rand = rand<minimum>
rand = rand>maximum ? maximum : rand;
return rand;*/
var range = maximum - minimum + 1;
return (Math.floor(Math.random() * Math.pow(10, ("" + range).length)) % range) + parseInt(minimum);
}

//Change the function startTrainNow(vi,tTask) from:
//if (tTask[4] == "0") {
// temp2 = nowt.getTime() + 3 * 60 * 60 * 1000
// }
// TO:
if (tTask[4] == "0") {
temp2 = nowt.getTime() + 3 * 60 * 60 * 1000 + Random()
}

 
Kambing User
FirefoxMacintosh

Can u pls add the interval time randomizer on scheduled attack?

 
shadowx360 Script's Author
MozillaWindows

It's already pretty random for the attack

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