Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

Priv Ikariam


H5N1

Rekomendowane odpowiedzi

Opublikowano

Witam. Zainstalowalem silnik ikariam od ZZJHONS do testow i nauki. I mam takie pytanie. czy wie ktos moze gdzie zmienic szybkosc budowania ? Wydaje mi sie że za czas odpowiada ten plik ale nie wiem jak go edytowac. Poniżej podaje kod w php.

<?php
/*
* Project: iZariam
* Edited: 12/02/2012
* By: ZZJHONS
* Info: [email protected]
*/
/**
* Format the time
* @param <int> $seconds
* @return <string>
*/
function format_time($seconds)
{
$CI =& get_instance();

$days = floor($seconds/86400);
$hours = floor(($seconds-($days*86400))/3600);
$minutes = floor(($seconds-($days*86400)-($hours*3600))/60);
$seconds = floor($seconds-($days*86400)-($hours*3600)-($minutes*60));
$return = '';
$times_count = 0;
if ($days > 0 and $times_count < 2)
{
 $times_count++;
 $return .= $days.$CI->lang->line('d_mini').' ';
}
if ($hours > 0 and $times_count < 2)
{
 $times_count++;
 $return .= $hours.$CI->lang->line('h_mini').' ';
}
if ($minutes > 0 and $times_count < 2)
{
 $times_count++;
 $return .= $minutes.$CI->lang->line('m_mini').' ';
}
if ($seconds > 0 and $times_count < 2)
{
 $times_count++;
 $return .= $seconds.$CI->lang->line('s_mini').' ';
}

return $return;
}
/**
* Format the time large
* @param <int> $seconds
* @return <string>
*/
function format_time_large($seconds)
{
$CI =& get_instance();

$days = floor($seconds/86400);
$hours = floor(($seconds-($days*86400))/3600);
$minutes = floor(($seconds-($days*86400)-($hours*3600))/60);
$seconds = floor($seconds-($days*86400)-($hours*3600)-($minutes*60));
$return = '';
$times_count = 0;
if ($days > 0 and $times_count < 2)
{
 $times_count++;
 if ($days <= 1) {
	 $return .= $days.' '.$CI->lang->line('day');
 } else {
	 $return .= $days.' '.$CI->lang->line('days');
 }
}
if ($hours > 0 and $times_count < 2)
{
 $times_count++;
 if ($hours <= 1) {
	 $return .= $hours.' '.$CI->lang->line('hour');
 } else {
	 $return .= $hours.' '.$CI->lang->line('hours');
 }
}
if ($minutes > 0 and $times_count < 2)
{
 $times_count++;
 if ($minutes <= 1) {
	 $return .= $minutes.' '.$CI->lang->line('minute');
 } else {
	 $return .= $minutes.' '.$CI->lang->line('minutes');
 }
}
if ($seconds > 0 and $times_count < 2)
{
 $times_count++;
 if ($seconds <= 1) {
	 $return .= $seconds.' '.$CI->lang->line('second');
 } else {
	 $return .= $seconds.' '.$CI->lang->line('seconds');
 }
}
return $return;
}
function premium_time($seconds)
{
$CI =& get_instance();
$days = floor($seconds/86400);
$hours = floor(($seconds-($days*86400))/3600);
$minutes = floor(($seconds-($days*86400)-($hours*3600))/60);
$seconds = floor($seconds-($days*86400)-($hours*3600)-($minutes*60));
$return = ($days > 0) ? $days.$CI->lang->line('d_mini').' ' : '';
if ($days > 0)
{
 $return = $days.$CI->lang->line('d_mini');
}
elseif($days == 0 and $hours > 0)
{
 $return = $hours.$CI->lang->line('h_mini');
}
elseif($days == 0 and $hours == 0 and $minutes > 0)
{
 $return = $minutes.$CI->lang->line('m_mini');
}
elseif($days == 0 and $hours == 0 and $minutes == 0 and $seconds > 0)
{
 $return = $seconds.$CI->lang->line('s_mini');
}
else
{
 $return = '';
}
return $return;
}
function route_time($seconds, $hour)
{
$year = floor(date('Y', $seconds));
$day = floor(date('d', $seconds));
$month = floor(date('m', $seconds));
$return = mktime($hour, 0, 0, $month, $day, $year);
if ($return < $seconds){$return = mktime($hour, 0, 0, $month, $day+1, $year);}
return $return;
}
/**
* Generating a Key
* @param <int> $length
* @return <string>
*/
function random_key($length = 0)
{
$arr = array('a','b','c','d','e','f',
			 'g','h','i','j','k','l',
			 'm','n','o','p','r','s',
			 't','u','v','x','y','z',
			 'A','B','C','D','E','F',
			 'G','H','I','J','K','L',
			 'M','N','O','P','R','S',
			 'T','U','V','X','Y','Z',
			 '1','2','3','4','5','6',
			 '7','8','9','0');
$pass = "";
if ($length > 0)
for($i = 0; $i < $length; $i++)
{
 $index = rand(0, count($arr) - 1);
 $pass .= $arr[$index];
}
return $pass;
}
function resource_icon($type)
{
switch($type)
{
 case 1: return 'wine'; break;
 case 2: return 'marble'; break;
 case 3: return 'glass'; break;
 case 4: return 'sulfur'; break;
 default: return 'wood'; break;
}
}
function spy_mission_icon($type)
{
switch($type)
{
 case 1: return 'arrived'; break;
 case 2: return 'return'; break;
 case 3: return 'money'; break;
 case 4: return 'money'; break;
 case 5: return 'research'; break;
 case 6: return 'online'; break;
 case 7: return 'garrison'; break;
 case 8: return 'fleet'; break;
 case 9: return 'message'; break;
}
}

 

 

Strona gry gdyby ktoś chcial sie z nia zapoznac. Ustawilem premium na 7 dni i 35 ambrozji, spolszczylem pare linijek kody i to chyba wszystko.

http://veteran.byethost5.com/

 

@EDIT

 

Wszystko działo oto link do SS

http://scr.hu/0j76/vqc9j

Opublikowano

Ja wczoraj wieczorem zainstalowałem ten silnik, i postaram się znaleźć wszystkie możliwe opcje

 

- szybkość wydobywcza(większą ilość surowcy)

- Szybszy czas budowy

"Fizykę i chemię tylko nazwali imieniem, szkłem i okiem, a prawda przeszła bokiem"

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...