Relocate Bug

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • the easiest way would be, to only allow relocation, when there is no fleet with start or end ids of the actual planet or its moon.

      PHP Source Code

      1. if(isset($db->select('select id from %%fleets%% where fleet_start_id = :planetid or fleet_start_id = :moonid or fleet_end_id = :planetid or fleet_end_id = :moonid;',array(':planetid' => $PLANET['id'], ':moonid' => $PLANET['id_luna'] != '' ? $PLANET['id_luna'] : 'nomoon'))[0])){
      2. $this->printMessage('There is still fleetmovement', array(array(
      3. 'label' => $LNG['sys_back'],
      4. 'url' => 'game.php?page=fleetTable'
      5. )));
      6. }

      didn't test it, may run may not. just so you have an idea how to realize.