make a file includes\classes\missions\MissionCaseSave.class.php
Display All
then add in includes\classes\class.FlyingFleetHandler.php
line 36
then add in includes\classes\class.FleetFunctions.php (this tells that savemission is on your planets or free positions available)
line 413
then add in language\de\custom.php (this step for all languages)
line 20
replace in includes\constants.php(with this the mission can be activated and deactivated for adminpanel)
line 160 with the 2 following lines
includes\pages\game\ShowFleetStep3Page.class.php(this allows you to start save-missions to destroyed planets and free positions)
replace line 152 with
and
replace line 212 with
replace line 168 till 170 in includes\classes\class.FlyingFleetsTable.php
with
then open the db and in it the table uni1_config(this activates the new modul)
in the field 'modules' add
think thats it.
enjoy
read carful add and replace are different.
PHP Source Code
- <?php
- class MissionCaseSave extends MissionFunctions implements Mission
- {
- function __construct($Fleet)
- {
- $this->_fleet = $Fleet;
- }
- function TargetEvent()
- {
- $this->setState(FLEET_RETURN);
- $this->SaveFleet();
- }
- function EndStayEvent()
- {
- return;
- }
- function ReturnEvent()
- {
- $LNG = $this->getLanguage(NULL, $this->_fleet['fleet_owner']);
- $fleetArray = FleetFunctions::unserialize($this->_fleet['fleet_array']);
- $schiffe = '[' . $this->_fleet['fleet_start_galaxy'] . '.' . $this->_fleet['fleet_start_system'] . '.' . $this->_fleet['fleet_start_planet'] . '] -> [' . $this->_fleet['fleet_end_galaxy'] . '.' . $this->_fleet['fleet_end_system'] . '.' . $this->_fleet['fleet_end_planet'] . ']<br><table style="width: 0;">';
- foreach ($fleetArray as $shipId => $shipAmount)
- {
- $schiffe .= '<tr><td>' . pretty_number($shipAmount) . '</td><td> ' . $LNG['tech'][$shipId] . '</td></tr>';
- }
- $schiffe .= '</table>';
- $Message = sprintf($LNG['sys_stat_mess'] . '<br><br>' . $LNG["type_mission_17"] . '<br>' . $schiffe . '<br>',
- GetStartAddressLink($this->_fleet, ''),
- pretty_number($this->_fleet['fleet_resource_metal']), $LNG['tech'][901],
- pretty_number($this->_fleet['fleet_resource_crystal']), $LNG['tech'][902],
- pretty_number($this->_fleet['fleet_resource_deuterium']), $LNG['tech'][903]
- );
- PlayerUtil::sendMessage($this->_fleet['fleet_owner'], 0, $LNG['sys_mess_tower'], 4, $LNG['sys_mess_fleetback'],
- $Message, $this->_fleet['fleet_end_time'], NULL, 1, $this->_fleet['fleet_universe']);
- $this->RestoreFleet();
- }
- }
then add in includes\classes\class.FlyingFleetHandler.php
line 36
then add in includes\classes\class.FleetFunctions.php (this tells that savemission is on your planets or free positions available)
line 413
line 20
replace in includes\constants.php(with this the mission can be activated and deactivated for adminpanel)
line 160 with the 2 following lines
includes\pages\game\ShowFleetStep3Page.class.php(this allows you to start save-missions to destroyed planets and free positions)
replace line 152 with
and
replace line 212 with
replace line 168 till 170 in includes\classes\class.FlyingFleetsTable.php
with
then open the db and in it the table uni1_config(this activates the new modul)
in the field 'modules' add
think thats it.
enjoy
read carful add and replace are different.