Hi guys,
Have lowered the "eachtime" value when training troops so it trains more troops per minute (previously it was set to 1 and is now 0.02).
However, this also changed the refresh interval when training the troops - so fast it's hard to get out from the page.
Any ideas how I can set the refresh interval to like 5 seconds instead?
Using Shadowss Travianz version.
Thanks!
Ok so have managed to figure out the script is calling the function procTrain every time, which then sends the header("Location: build.php?id=".$post['id']); at the end of it.
I've tried to put a sleep() before it. Also tried this:
header("Refresh: 5;URL=build.php?id=".$post['id']);
But that returns an error msg on db_MYSQL.php instead.
Have lowered the "eachtime" value when training troops so it trains more troops per minute (previously it was set to 1 and is now 0.02).
However, this also changed the refresh interval when training the troops - so fast it's hard to get out from the page.
Any ideas how I can set the refresh interval to like 5 seconds instead?
Using Shadowss Travianz version.
Thanks!
Ok so have managed to figure out the script is calling the function procTrain every time, which then sends the header("Location: build.php?id=".$post['id']); at the end of it.
I've tried to put a sleep() before it. Also tried this:
header("Refresh: 5;URL=build.php?id=".$post['id']);
But that returns an error msg on db_MYSQL.php instead.
Last edited by a moderator: