Hike Student

  • Male
  • 33
  • Member since Jan 11th 2017
Last Activity

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

  • Hike -

    Hello, I reply in the day

  • wrath -

    hey that was you i e-mailed....right?

  • BIO DRAGON -

    I need your help I'm trying to disperse the construction of the fleet and defense to 400000000000000000000000000000000000 IDs do not get maximum 18.446.744.073.709.551.616 how to make more

  • BIO DRAGON -

    Good afternoon you have fashion for 2moons 1.8git

  • BIO DRAGON -

    Help fix the error when logging in to the game
    24 minutes ago
    WARNING
    Message: include(includes/classes/cache/ressource/CacheFile.class.php) [function.include]: failed to open stream: No such file or directory
    File: /includes/classes/class.Cache.php
    Line: 29
    URL: oxwars/game.php?page=overview
    PHP-Version: 5.3.29
    PHP-API: apache2handler
    MySQL-Cleint-Version: mysqlnd 5.0.8-dev - 20102224 - $Id: 731e5b87ba42146a687c29995d2dfd8b4e40b325 $
    2Moons Version: 1.7.2749 (FILE)
    Debug Backtrace:
    #0 /includes/classes/class.Cache.php(29): errorHandler(2, 'include(include...', 'FILEPATH ...', 29, Array)
    #1 /includes/classes/class.Cache.php(29): include()
    #2 /includes/common.php(71): require('FILEPATH ...')
    #3 /game.php(35): require('FILEPATH ...')
    #4 {main}

  • Pein -

    can you please contact me at azuredarko@gmail.com

    am looking for working mods for 1.7.3
    if you have some can you send me links with guides
    when 1.8 comes out how i can update game without deleting files

    do you have paypal mod
    do you have guide how to add page to left side

    • Hike -

      Hello, version 1.7 3 largest world uses it. The community goes through the 1.8. For mod paypal it is simple to do just look at the examples on paypal.

    • Pein -

      do you have guide to create left page somehow with that i can add paypal

    • Hike -

      You hear what by left page? If just add a link it's not hard

  • BIO DRAGON -

    I need to make the planets of the menu 640x300px like ogame like this

  • BIO DRAGON -

    Good afternoon, could you help me with my game? I need a lot of things to change in the design version of the engine 2moons 1.8 gif

  • wrath -

    hey hike sorry to bother you...hoping yu can direct me to the file i need to edit steller ore/steller dust on expeditions.....is that in the missions"expedition"?

  • wrath -

    its good ty i had a moment of stupidity...fixed in mysql config sorry

  • wrath -

    size of the sender

  • wrath -

    hay quick question i want to change the expidition size from what it is........im looking n=in the mission files..but were would the line be to change the default amount sorry for asking all the time....but i have learnt so much from you..


    <?php

    /**
    * 2Moons
    * Copyright (C) 2012 Jan Kröpke
    *
    * This program is free software: you can redistribute it and/or modify
    * it under the terms of the GNU General Public License as published by
    * the Free Software Foundation, either version 3 of the License, or
    * (at your option) any later version.
    *
    * This program is distributed in the hope that it will be useful,
    * but WITHOUT ANY WARRANTY; without even the implied warranty of
    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
    * GNU General Public License for more details.
    *
    * You should have received a copy of the GNU General Public License
    * along with this program. If not, see <gnu.org/licenses/>.
    *
    * @package 2Moons
    * @author Jan Kröpke <info@2moons.cc>
    * @copyright 2012 Jan Kröpke <info@2moons.cc>
    * @license gnu.org/licenses/gpl.html GNU GPLv3 License
    * @version 1.7.3 (2013-05-19)
    * @info $Id: MissionCaseExpedition.php 2632 2013-03-18 19:05:14Z slaver7 $
    * @link 2moons.cc/
    */

    class MissionCaseExpedition extends MissionFunctions
    {
    function __construct($fleet)
    {
    $this->_fleet = $fleet;
    }

    function TargetEvent()
    {
    $this->setState(FLEET_HOLD);
    $this->SaveFleet();
    }

    function EndStayEvent()
    {
    global $pricelist, $reslist;
    $LNG = $this->getLanguage(NULL, $this->_fleet['fleet_owner']);

    $expeditionPoints = array();

    foreach($reslist['fleet'] as $ID)
    {
    $expeditionPoints[$ID] = ($pricelist[$ID]['cost'][901] + $pricelist[$ID]['cost'][902]) / 1000000;
    }

    $expeditionPoints[202] = 12;
    $expeditionPoints[203] = 47;
    $expeditionPoints[204] = 12;
    $expeditionPoints[205] = 110;
    $expeditionPoints[206] = 47;
    $expeditionPoints[207] = 160;

    $fleetRaw = explode(";", $this->_fleet['fleet_array']);
    $fleetPoints = 0;
    $fleetCapacity = 0;
    $find_stardust = 5;
    $fleetArray = array();

    $stardustCount = $GLOBALS['DATABASE']->query("SELECT COUNT(planetarium) as planetarium FROM ".PLANETS." WHERE id_owner = ".$this->_fleet['fleet_end_id'].";");
    $stardustCount = $GLOBALS['DATABASE']->fetch_array($stardustCount);

    $find_stardust = $find_stardust + $stardustCount['planetarium'];
    foreach ($fleetRaw as $Group)
    {
    if (empty($Group)) continue;

    $Class = explode (",", $Group);
    $fleetArray[$Class[0]] = $Class[1];
    $fleetCapacity += $Class[1] * $pricelist[$Class[0]]['capacity'];
    $fleetPoints += $Class[1] * $expeditionPoints[$Class[0]];
    }

    $fleetCapacity -= $this->_fleet['fleet_resource_metal'] + $this->_fleet['fleet_resource_crystal'] + $this->_fleet['fleet_resource_deuterium'] + $this->_fleet['fleet_resource_darkmatter'];

    /*if($GLOBALS['CONFIG'][$this->_fleet['fleet_universe']]['purchase_bonus_timer'] > TIMESTAMP || $GLOBALS['CONFIG'][$this->_fleet['fleet_universe']]['cosmonaute'] == 1){
    $GetEvent = mt_rand(1,7);
    }else{
    $GetEvent = mt_rand(1,6);
    } */

    $GetEvent = mt_rand(1,7);
    $combat_bonus = $GLOBALS['DATABASE']->getFirstRow("SELECT * FROM ".USERS." WHERE id = ".$this->_fleet['fleet_owner'].";");
    $Message = $LNG['sys_expe_nothing_'.mt_rand(1,8)];
    $chancetogetstar = mt_rand(0,100);
    if($chancetogetstar < $find_stardust){
    $find_stardust = 1;
    }else{
    $find_stardust = 0;
    }
    switch($GetEvent)
    {
    case 1:

    $WitchFound = mt_rand(1,3);
    $FindSize = mt_rand(0, 100);
    $Factor = 0;

    if(10 < $FindSize) {
    $Factor = (mt_rand(100, 500) / $WitchFound) * $GLOBALS['CONFIG'][$this->_fleet['fleet_universe']]['resource_multiplier'];
    $Factor = $Factor + ($Factor / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_ress_1_'.mt_rand(1,4)];
    } elseif(0 < $FindSize && 10 >= $FindSize) {
    $Factor = (mt_rand(520, 1000) / $WitchFound) * $GLOBALS['CONFIG'][$this->_fleet['fleet_universe']]['resource_multiplier'];
    $Factor = $Factor + ($Factor / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_ress_2_'.mt_rand(1,3)];
    } elseif(0 == $FindSize) {
    $Factor = (mt_rand(1020, 2000) / $WitchFound) * $GLOBALS['CONFIG'][$this->_fleet['fleet_universe']]['resource_multiplier'];
    $Factor = $Factor + ($Factor / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_ress_3_'.mt_rand(1,2)];
    }

    $StatFactor = $GLOBALS['DATABASE']->getFirstRow("SELECT MAX(total_points) as total FROM `".STATPOINTS."` WHERE `stat_type` = 1 AND `universe` = '".$this->_fleet['fleet_universe']."';");

    $MaxPoints = ($StatFactor['total'] < 5000000) ? 9000 : 12000;
    $Size = min($Factor * MAX(MIN($fleetPoints / 1000, $MaxPoints), 200), $fleetCapacity);

    switch($WitchFound)
    {
    case 1:
    $this->UpdateFleet('fleet_resource_metal', $this->_fleet['fleet_resource_metal'] + $Size);
    break;
    case 2:
    $this->UpdateFleet('fleet_resource_crystal', $this->_fleet['fleet_resource_crystal'] + $Size);
    break;
    case 3:
    $this->UpdateFleet('fleet_resource_deuterium', $this->_fleet['fleet_resource_deuterium'] + $Size);
    break;
    }

    $GLOBALS['DATABASE']->query("UPDATE ".USERS." set `achievements_expedition` = `achievements_expedition` + '1', `expedition_count` = `expedition_count` + '1' where `id` = '".$this->_fleet['fleet_owner']."';");
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." SET stardust = stardust + '".$find_stardust."' where `id` = ".$this->_fleet['fleet_owner'].";");
    $INFOR = $GLOBALS['DATABASE']->query("SELECT * FROM `uni1_users` WHERE id = ".$this->_fleet['fleet_owner'].";");
    if($GLOBALS['DATABASE']->numRows($INFOR) > 0){
    while ($xkf = mysqli_fetch_assoc($INFOR)) {
    $ACTUA = $xkf['expedition_count'];
    $ACTUAL = (10 * $xkf['achievements_misc_expe']) + 10;
    $expe_lvl = $xkf['achievements_misc_expe'] +1;
    $expe_reward_points = 50;
    $expe_reward_am = 50;
    $expe_reward_points = $expe_reward_points + ($xkf['achievements_misc_expe'] * $expe_reward_points);
    $expe_reward_am = $expe_reward_am + ($xkf['achievements_misc_expe'] * $expe_reward_am);
    }
    if($ACTUA == $ACTUAL){
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." SET achievements_misc_expe = achievements_misc_expe + '1', antimatter = antimatter + ".$expe_reward_am." WHERE id = ".$this->_fleet['fleet_owner'].";");
    $msg = '<img alt="" style="float:left; width:60px; margin-right:6px;" src="styles/images/achiev/ach_expedition.png">reached: <span class="achiev_mes_head">expeditions lvl. '.$expe_lvl.'</span><br> received:<br> '.$expe_reward_am.' antimatter <br> '.$expe_reward_points.' achievement points';
    SendSimpleMessage($this->_fleet['fleet_owner'], '', TIMESTAMP, 4, 'System', 'Achievements', $msg);

    }
    }

    break;
    case 2:
    $FindSize = mt_rand(0, 100);
    $Size = 0;

    if(10 < $FindSize) {
    $Size = mt_rand(1000, 3000);
    $Size = $Size + ($Size / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_dm_1_'.mt_rand(1,5)];
    } elseif(0 < $FindSize && 10 >= $FindSize) {
    $Size = mt_rand(3001, 6000);
    $Size = $Size + ($Size / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_dm_2_'.mt_rand(1,3)];
    } elseif(0 == $FindSize) {
    $Size = mt_rand(6001, 30000);
    $Size = $Size + ($Size / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_dm_3_'.mt_rand(1,2)];
    }
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." set `achievements_expedition` = `achievements_expedition` + '1', `expedition_count` = `expedition_count` + '1' where `id` = '".$this->_fleet['fleet_owner']."';");
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." SET stardust = stardust + '".$find_stardust."' where `id` = ".$this->_fleet['fleet_owner'].";");
    $this->UpdateFleet('fleet_resource_darkmatter', $this->_fleet['fleet_resource_darkmatter'] + $Size);
    break;
    case 3:
    $FindSize = mt_rand(0, 100);
    $Size = 0;
    $Message = "";

    if(10 < $FindSize) {
    $Size = mt_rand(100, 500);
    $Size = $Size + ($Size / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_ships_1_'.mt_rand(1,4)];
    } elseif(0 < $FindSize && 10 >= $FindSize) {
    $Size = mt_rand(520, 1000);
    $Size = $Size + ($Size / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_ships_2_'.mt_rand(1,2)];
    } elseif(0 == $FindSize) {
    $Size = mt_rand(1020, 2000);
    $Size = $Size + ($Size / 100 * $combat_bonus['combat_reward_expe']);
    $Message = $LNG['sys_expe_found_ships_3_'.mt_rand(1,2)];
    }

    $StatFactor = $GLOBALS['DATABASE']->getFirstCell("SELECT MAX(total_points) FROM `".STATPOINTS."` WHERE `stat_type` = 1 AND `universe` = '".$this->_fleet['fleet_universe']."';");

    $MaxPoints = ($StatFactor < 5000000) ? 4500 : 6000;

    $FoundShips = max(round($Size * min($fleetPoints, $MaxPoints)), 10000);

    $FoundShipMess = "";
    $NewFleetArray = "";

    $Found = array();
    foreach($reslist['fleet'] as $ID)
    {
    if(!isset($fleetArray[$ID]) || $ID == 208 || $ID == 209 || $ID == 214)
    continue;

    $MaxFound = floor($FoundShips / ($pricelist[$ID]['cost'][901] + $pricelist[$ID]['cost'][902]));
    if($MaxFound <= 0)
    continue;

    $Count = mt_rand(0, $MaxFound);
    if($Count <= 0)
    continue;

    $Found[$ID] = $Count;
    $FoundShips -= $Count * ($pricelist[$ID]['cost'][901] + $pricelist[$ID]['cost'][902]);
    $FoundShipMess .= '<br>'.$LNG['tech'][$ID].': '.pretty_number($Count);
    if($FoundShips <= 0)
    break;
    }

    if (empty($Found)) {
    $FoundShipMess .= '<br><br>'.$LNG['sys_expe_found_ships_nothing'];
    }

    foreach($fleetArray as $ID => $Count)
    {
    if(!empty($Found[$ID]))
    {
    $Count += $Found[$ID];
    }

    $NewFleetArray .= $ID.",".floattostring($Count).';';
    }

    $Message .= $FoundShipMess;

    $this->UpdateFleet('fleet_array', $NewFleetArray);
    $this->UpdateFleet('fleet_amount', array_sum($fleetArray));
    break;
    case 4:
    $Chance = mt_rand(1,2);
    if($Chance == 1) {
    $Points = array(-6,-8,-10);
    $Which = 1;
    $Def = -3;
    $Name = $LNG['sys_expe_attackname_1'];
    $Add = 0;
    $Rand = array(5,3,2);
    $DefenderFleetArray = "204,5;206,3;207,2;";
    } else {
    $Points = array(-7,-9,-11);
    $Which = 2;
    $Def = 3;
    $Name = $LNG['sys_expe_attackname_2'];
    $Add = 0.1;
    $Rand = array(4,3,2);
    $DefenderFleetArray = "205,5;215,3;213,2;";
    }

    $messageHTML = <<<HTML
    <div class="raportMessage">
    <table>
    <tr>
    <td colspan="2"><a href="CombatReport.php?raport=%s" target="_blank"><span %s>%s %s (%s)</span></a></td>
    </tr>
    <tr>
    <td>%s</td><td><span %s>%s: %s</span>&nbsp;<span %s>%s: %s</span></td>
    </tr>
    <tr>
    <td>%s</td><td><span>%s:&nbsp;<span style="color:#a47d7a;">%s</span>&nbsp;</span><span>%s:&nbsp;<span style="color:#5ca6aa;">%s</span>&nbsp;</span><span>%s:&nbsp;<span style="color:#339966;">%s</span></span></td>
    </tr>
    <tr>
    <td>%s</td><td><span>%s:&nbsp;<span style="color:#a47d7a;">%s</font>&nbsp;</span><span>%s:&nbsp;<span style="color:#5ca6aa;">%s</span></span></td>
    </tr>
    </table>
    </div>
    HTML;
    //Minize HTML
    $messageHTML = str_replace(array("\n", "\t", "\r"), "", $messageHTML);


    $FindSize = mt_rand(0, 100);
    $maxAttack = 0;

    if(10 < $FindSize) {
    $Message = $LNG['sys_expe_attack_'.$Which.'_1_'.$Rand[0]];
    $maxAttack = 0.3 + $Add + (mt_rand($Points[0], abs($Points[0])) * 0.01);
    } elseif(0 < $FindSize && 10 >= $FindSize) {
    $Message = $LNG['sys_expe_attack_'.$Which.'_2_'.$Rand[1]];
    $maxAttack = 0.3 + $Add + (mt_rand($Points[1], abs($Points[1])) * 0.01);
    } elseif(0 == $FindSize) {
    $Message = $LNG['sys_expe_attack_'.$Which.'_3_'.$Rand[2]];
    $maxAttack = 0.3 + $Add + (mt_rand($Points[2], abs($Points[2])) * 0.01);
    }

    foreach($fleetArray as $ID => $count)
    {
    $DefenderFleetArray .= $ID.",".round($count * $maxAttack).";";
    }

    $AttackerTechno = $GLOBALS['DATABASE']->getFirstRow("SELECT * FROM ".USERS." WHERE id = ".$this->_fleet['fleet_owner'].";");
    $DefenderTechno = array(
    'id' => 0,
    'username' => $Name,
    'military_tech' => (min($AttackerTechno['military_tech'] + $Def,0)),
    'defence_tech' => (min($AttackerTechno['defence_tech'] + $Def,0)),
    'shield_tech' => (min($AttackerTechno['shield_tech'] + $Def,0)),
    'laser_tech' => 0,
    'ion_tech' => 0,
    'plasma_tech' => 0,
    'gravity_tech' => 0,
    'rpg_amiral' => 0,
    'dm_defensive' => 0,
    'dm_attack' => 0,
    'experience_combat_level' => (min($AttackerTechno['experience_combat_level'],0)),
    'academy_1101' => 0,
    'academy_1102' => 0,
    'academy_1301' => 0,
    'academy_1302' => 0,
    'academy_1103' => 0,
    'academy_1108' => 0,
    'academy_1109' => 0,
    'academy_1110' => 0,
    'academy_1111' => 0,
    'academy_1303' => 0,
    'academy_1311' => 0,

    );

    $fleetID = $this->_fleet['fleet_id'];

    $fleetAttack[$fleetID]['fleetDetail'] = $this->_fleet;
    $fleetAttack[$fleetID]['player'] = $AttackerTechno;
    $fleetAttack[$fleetID]['player']['factor'] = getFactors($fleetAttack[$this->_fleet['fleet_id']]['player'], 'attack', $this->_fleet['fleet_start_time']);
    $fleetAttack[$fleetID]['unit'] = array();

    $temp = explode(';', $this->_fleet['fleet_array']);
    foreach ($temp as $temp2)
    {
    $temp2 = explode(',', $temp2);

    if ($temp2[0] < 100)
    {
    continue;
    }

    if (!isset($fleetAttack[$fleetID]['unit'][$temp2[0]]))
    {
    $fleetAttack[$fleetID]['unit'][$temp2[0]] = 0;
    }

    $fleetAttack[$fleetID]['unit'][$temp2[0]] += $temp2[1];
    }

    $fleetDefend = array();

    $defRowDef = explode(';', $DefenderFleetArray);
    foreach ($defRowDef as $Element)
    {
    $Element = explode(',', $Element);

    if ($Element[0] < 100) continue;

    if (!isset($fleetDefend[0]['unit'][$Element[0]]))
    $fleetDefend[0]['unit'][$Element[0]] = 0;

    $fleetDefend[0]['unit'][$Element[0]] += $Element[1];
    }

    $fleetDefend[0]['fleetDetail'] = array(
    'fleet_start_galaxy' => $this->_fleet['fleet_end_galaxy'],
    'fleet_start_system' => $this->_fleet['fleet_end_system'],
    'fleet_start_planet' => $this->_fleet['fleet_end_planet'],
    'fleet_start_type' => 1,
    'fleet_end_galaxy' => $this->_fleet['fleet_end_galaxy'],
    'fleet_end_system' => $this->_fleet['fleet_end_system'],
    'fleet_end_planet' => $this->_fleet['fleet_end_planet'],
    'fleet_end_type' => 1,
    'fleet_resource_metal' => 0,
    'fleet_resource_crystal' => 0,
    'fleet_resource_deuterium' => 0
    );
    $fleetDefend[0]['player'] = $DefenderTechno;
    $fleetDefend[0]['player']['factor'] = 0;

    require_once('calculateAttack.php');

    $fleetIntoDebris = $GLOBALS['CONFIG'][$this->_fleet['fleet_universe']]['Fleet_Cdr'];
    $defIntoDebris = $GLOBALS['CONFIG'][$this->_fleet['fleet_universe']]['Defs_Cdr'];

    $combatResult = calculateAttack($fleetAttack, $fleetDefend, $fleetIntoDebris, $defIntoDebris);

    $fleetArray = '';
    $totalCount = 0;

    $fleetAttack[$fleetID]['unit'] = array_filter($fleetAttack[$fleetID]['unit']);
    foreach ($fleetAttack[$fleetID]['unit'] as $element => $amount)
    {
    $fleetArray .= $element.','.$amount.';';
    $totalCount += $amount;
    }

    if ($totalCount <= 0)
    {
    $this->KillFleet();
    }
    else
    {
    $this->UpdateFleet('fleet_array', substr($fleetArray, 0, -1));
    $this->UpdateFleet('fleet_amount', $totalCount);
    }

    require_once('GenerateReport.php');


    $debrisRessource = array(901, 902);
    foreach($debrisRessource as $elementID)
    {
    $debris[$elementID] = 0;
    }

    $stealResource = array(901 => 0, 902 => 0, 903 => 0);

    $raportInfo = array(
    'thisFleet' => $this->_fleet,
    'debris' => $debris,
    'stealResource' => $stealResource,
    'moonChance' => 0,
    'moonDestroy' => false,
    'moonName' => null,
    'moonDestroyChance' => null,
    'moonDestroySuccess' => null,
    'fleetDestroyChance' => null,
    'fleetDestroySuccess' => null,
    );

    $raportData = GenerateReport($combatResult, $raportInfo);

    $raportID = md5(uniqid('', true).TIMESTAMP);
    $sqlQuery = "INSERT INTO ".RW." SET rid = '".$raportID."', raport = '".serialize($raportData)."', time = '".$this->_fleet['fleet_start_time']."', attacker = '".$this->_fleet['fleet_owner']."';";
    $GLOBALS['DATABASE']->query($sqlQuery);

    switch($combatResult['won'])
    {
    case "a":
    $attackClass = 'style="color:green;"';
    $defendClass = 'style="color:red;"';
    break;
    case "w":
    $attackClass = 'style="color:orange;"';
    $defendClass = 'style="color:orange;"';
    break;
    case "r":
    $attackClass = 'style="color:red;"';
    $defendClass = 'style="color:green;"';
    break;
    }

    $message = sprintf($messageHTML,
    $raportID,
    $attackClass,
    $LNG['sys_mess_attack_report'],
    sprintf(
    $LNG['sys_adress_planet'],
    $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']
    ),
    $LNG['type_planet_short'][$this->_fleet['fleet_end_type']],
    $LNG['sys_lost'],
    $attackClass,
    $LNG['sys_attack_attacker_pos'],
    pretty_number($combatResult['unitLost']['attacker']),
    $defendClass,
    $LNG['sys_attack_defender_pos'],
    pretty_number($combatResult['unitLost']['defender']),
    $LNG['sys_gain'],
    $LNG['tech'][901],
    pretty_number($stealResource[901]),
    $LNG['tech'][902],
    pretty_number($stealResource[902]),
    $LNG['tech'][903],
    pretty_number($stealResource[903]),
    $LNG['sys_debris'],
    $LNG['tech'][901],
    pretty_number($debris[901]),
    $LNG['tech'][902],
    pretty_number($debris[902])
    );

    if($combatResult['won'] == 'a'){
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." set `achievements_expedition` = `achievements_expedition` + '1', `expedition_count` = `expedition_count` + '1' where `id` = '".$this->_fleet['fleet_owner']."';");
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." SET stardust = stardust + '".$find_stardust."' where `id` = ".$this->_fleet['fleet_owner'].";");
    }



    SendSimpleMessage($this->_fleet['fleet_owner'], 0, $this->_fleet['fleet_end_stay'], 3, $LNG['sys_mess_tower'], $LNG['sys_mess_attack_report'], $message);
    break;
    case 5:
    $this->KillFleet();
    $Message = $LNG['sys_expe_lost_fleet_'.mt_rand(1,4)];
    break;
    case 6:
    # owiki.de/Expedition#Ver.C3.A4nderte_Flugzeit
    $MoreTime = mt_rand(0, 100);
    $Wrapper = array();
    $Wrapper[] = 2;
    $Wrapper[] = 2;
    $Wrapper[] = 2;
    $Wrapper[] = 2;
    $Wrapper[] = 2;
    $Wrapper[] = 2;
    $Wrapper[] = 2;
    $Wrapper[] = 3;
    $Wrapper[] = 3;
    $Wrapper[] = 5;

    if($MoreTime < 75) {
    $this->UpdateFleet('fleet_end_time', $this->_fleet['fleet_end_stay'] + (($this->_fleet['fleet_end_time'] - $this->_fleet['fleet_end_stay']) + ($this->_fleet['fleet_end_stay'] - $this->_fleet['fleet_start_time']) * $Wrapper[mt_rand(0, 9)]));
    $Message = $LNG['sys_expe_time_slow_'.mt_rand(1,6)];
    } else {
    $this->UpdateFleet('fleet_end_time', $this->_fleet['fleet_end_stay'] + max(1, ($this->_fleet['fleet_end_time'] - $this->_fleet['fleet_end_stay']) - ($this->_fleet['fleet_end_stay'] - $this->_fleet['fleet_start_time']) / 3 * $Wrapper[mt_rand(0, 9)]));
    $Message = $LNG['sys_expe_time_fast_'.mt_rand(1,3)];
    }
    break;
    case 7:
    $FindSize = mt_rand(0, 100);
    if(30 < $FindSize) {
    $Message = 'You found one frisbee';
    $varis = 'frisbee';
    } elseif(10 < $FindSize && 30 >= $FindSize) {
    $Message = 'You found one alien';
    $varis = 'alien';
    } elseif(0 < $FindSize && 10 >= $FindSize) {
    $Message = 'You found one rocket';
    $varis = 'rocket';
    }
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." set `achievements_expedition` = `achievements_expedition` + '1', `expedition_count` = `expedition_count` + '1' where `id` = '".$this->_fleet['fleet_owner']."';");
    $GLOBALS['DATABASE']->query("UPDATE ".USERS." set ".$varis." = ".$varis." + '1' where `id` = '".$this->_fleet['fleet_owner']."';");
    break;
    }

    SendSimpleMessage($this->_fleet['fleet_owner'], 0, $this->_fleet['fleet_end_stay'], 15, $LNG['sys_mess_tower'], $LNG['sys_expe_report'], $Message);
    $this->setState(FLEET_RETURN);
    $this->SaveFleet();
    }

    function ReturnEvent()
    {
    $LNG = $this->getLanguage(NULL, $this->_fleet['fleet_owner']);
    $Message = sprintf($LNG['sys_expe_back_home'], $LNG['tech'][901], pretty_number($this->_fleet['fleet_resource_metal']), $LNG['tech'][902], pretty_number($this->_fleet['fleet_resource_crystal']), $LNG['tech'][903], pretty_number($this->_fleet['fleet_resource_deuterium']), $LNG['tech'][921], pretty_number($this->_fleet['fleet_resource_darkmatter']));
    SendSimpleMessage($this->_fleet['fleet_owner'], 0, $this->_fleet['fleet_end_time'], 15, $LNG['sys_mess_tower'], $LNG['sys_expe_report'], $Message);
    $this->RestoreFleet();
    }
    }

    • Hike -

      The size of the sender? You mean the number of possible mission or chance?

  • wrath -

    Thanks

  • wrath -

    1.7 xterium

  • wrath -

    Launch

  • wrath -

    During a lunch attack....And when being spyed on

  • wrath -

    yup

  • wrath -

    I've been trying to do live updates via email but can't figure it out.....Ie incoming attack or spying.....Etc an email would be sent out to member. If you could help on that it will be appreciated

    • Hike -

      You want when the attack is sent or when it is happening on the player?

  • wrath -

    got it ...thanks

  • wrath -

    Hey I sent you an email via the site.....Just wondering if u got it...thanks

  • wrath -

    K I'm using 7.3 thank you

  • wrath -

    its a 2d map of the galaxy that shows the world circling the sun..their was a mod before but cant find it anymore.....but i think it was for a older version

    • Hike -

      I will make one but it will take more time to set up for version 1.8. I will post it on the forum

  • wrath -

    Hey hike will you create make a mod similar to galaxy mode....?

  • wrath -

    i was wondering if you can or have made a mod similar to 2d galaxy but more 3d?

    • Hike -

      No I have not done, my for the 3d I think no one will do it's too technical and fake really mastered

  • Hike -

    No mods I create them myself at the request I do not disclose any other party that if request of member

  • wrath -

    Hey thank you for the support......Also do you know a link to get more mods?....Take care