Merhabalar, Ogame scriptinde js ile aynı anda filo gönderince (ship210), aynı anda inen filoların sorguları siteyi kitliyor. 1sn bekletme işlemini nasıl yaparım ?
function doit (order, galaxy, system, planet, planettype, shipcount) {
ajax.requestFile = "FleetAjax.php?action=send";
ajax.runResponse = whenResponse;
ajax.execute = true;
ajax.setVar("thisgalaxy", {current_galaxy});
ajax.setVar("thissystem", {current_system});
ajax.setVar("thisplanet", {current_planet});
ajax.setVar("thisplanettype", {planet_type});
ajax.setVar("mission", order);
ajax.setVar("galaxy", galaxy);
ajax.setVar("system", system);
ajax.setVar("planet", planet);
ajax.setVar("planettype", planettype);
if (order == 6)
ajax.setVar("ship210", shipcount);
if (order == 7) {
ajax.setVar("ship208", 1);
ajax.setVar("ship203", 2);
}
if (order == 8)
ajax.setVar("ship209", shipcount);
ajax.runAJAX();
}