yi12345 / TravianZ

travian t3.6 project (based on travianx v6.0.0)
183 stars 190 forks source link

Training Troops - eachtime #482

Open PleXy opened 7 years ago

PleXy commented 7 years ago

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?

Thanks!

PleXy commented 7 years ago

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.