Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

Search Time xNova 5.9

Joined
Jun 10, 2010
Messages
2
Reaction score
0
Hello, use the xNova Project 5.9 and would like to know if anyone knows how to get the time in which the search is made. I would leave everything as few as 1 second.

Thanks,
Vitor Leonel
 
RaGEZONER || Webdevloper
Banned
Joined
Oct 6, 2011
Messages
614
Reaction score
130
I do not need your money. But maybe you're looking for a file is vars.php.
 
Initiate Mage
Joined
Jan 2, 2014
Messages
4
Reaction score
1
/includes/fonctions/getBuildingTime.php

This is the file you have to mod in order to fix this.

A way to do is is :

Code:
<?php

/**
 _  \_/ |\ | /¯¯\ \  / /\    |¯¯) |_¯ \  / /¯¯\ |  |   |´¯|¯` | /¯¯\ |\ |5
 ¯  /¯\ | \| \__/  \/ /--\   |¯¯\ |__  \/  \__/ |__ \_/   |   | \__/ | \|Core.
 * @author: Copyright (C) 2011 by Brayan Narvaez (Prinick) developer of xNova Revolution
 * @author web: http://www.bnarvaez.com
 * [USER=855594]link[/USER]: [url]http://www.xnovarev.com[/url]

 * [USER=751524]pack[/USER]age 2Moons
 * @author Slaver <slaver7@gmail.com>
 * [USER=822345]Copyright[/USER] 2009 Lucky <douglas@crockford.com> (XGProyecto)
 * [USER=822345]Copyright[/USER] 2011 Slaver <slaver7@gmail.com> (Fork/2Moons)
 * [USER=837256]license[/USER] [url]http://www.gnu.org/licenses/gpl.html[/url] GNU GPLv3 License
 * [USER=316612]Version[/USER] 1.3 (2011-01-21)
 * [USER=855594]link[/USER] [url]http://code.google.com/p/2moons/[/url]

 * Please do not remove the credits
*/

if(!defined('INSIDE')) die('Hacking attempt!');

    function GetBuildingTime ($USER, $PLANET, $Element, $Destroy = false)
    {
        global $pricelist, $resource, $reslist, $requeriments;
        
        $CONF    = getConfig($USER['universe']);
        $level = isset($PLANET[$resource[$Element]]) ? $PLANET[$resource[$Element]] : $USER[$resource[$Element]];
                
        $Cost   = floor($pricelist[$Element]['metal'] * pow($pricelist[$Element]['factor'], $level)) + floor($pricelist[$Element]['crystal'] * pow($pricelist[$Element]['factor'], $level));
    
        if (in_array($Element, $reslist['build'])) {
            
        if($USER['commander'] >= 1 xor $USER['raza'] == 0) {        
            $tiempo    = $Cost / ($CONF['game_speed'] * (1 + $PLANET[$resource[14]])) * pow(0.5, $PLANET[$resource[15]]);    
            $porcentaje = $tiempo * 10/100;
            $time = $tiempo - $porcentaje;
        } elseif($USER['commander'] >= 1 and $USER['raza'] == 0) {
        $tiempo    = $Cost / ($CONF['game_speed'] * (1 + $PLANET[$resource[14]])) * pow(0.5, $PLANET[$resource[15]]);    
            $porcentaje = $tiempo * 20/100;
            $time = $tiempo - $porcentaje;
        } else {
            $time = $Cost / ($CONF['game_speed'] * (1 + $PLANET[$resource[14]])) * pow(0.5, $PLANET[$resource[15]]);    
        } } elseif (in_array($Element, $reslist['fleet'])) {
            if($USER['commander'] >= 1 xor $USER['raza'] == 1) {
            @$tiempo            = $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]);
            $porcentaje = $tiempo * 10/100;
            $time = $tiempo - $porcentaje;
        } elseif($USER['commander'] >= 1 and $USER['raza'] == 1) {
            @$tiempo            = $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]);
            $porcentaje = $tiempo * 20/100;
            $time = $tiempo - $porcentaje;
        } else {
            @$time              = $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]);    
        } }elseif (in_array($Element, $reslist['defense'])) {
            if($USER['commander'] >= 1) {
            @$tiempo= $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]);
            $porcentaje = $tiempo * 10/100;
            $time = $tiempo - $porcentaje;
        } else {
            @$time= $Cost / ($CONF['game_speed'] * (1 + ($PLANET[$resource[21]] + $PLANET[$resource[14]]))) * pow(0.5, $PLANET[$resource[15]]);
        } }
        
        
        elseif (in_array($Element, $reslist['tech']))
        {
            if(is_array($PLANET[$resource[31].'_inter']))
            {
                $Level = 0;
                foreach($PLANET[$resource[31].'_inter'] as $Levels)
                {
                    if($Levels >= $requeriments[$Element][31])
                        $Level += $Levels;
                }
            }
            else
            {
                $Level    = $PLANET[$resource[31]];
            }
            
            $facteur = 0;
            if($USER['raza'] ==1 )
                $facteur += 10;
            if($USER['technocratic'] == 1)
                $facteur += 25;
                
            $tiempo            = $Cost / ($CONF['game_speed'] * (1 + $Level)) * pow(0.5, $PLANET[$resource[6]]);                
            $time = $tiempo - ($tiempo * $facteur/100);        
        }
        
        if(!$Destroy)
            $time    = floor($time * 3600);
        else
            $time    = floor($time * 1300);
        

        return max($time, $CONF['min_build_time']);
    }

?>
by Homer

The fact is you can put here the formulas you want for each element (tech, ships, or even buildings/defenses ... )
 
Back
Top