ASAGIDAKI KOD OGAME OYUNUN MADEN TOPLAMA MODULUNUN PHP DOSYASIDIR, FAKAT KOTU NIYETLI ARKADASLAR BUNUN BUGUNU BULMUSLAR YARDIMCI OLABILRSENIZ SEVINIRIM
// $time = TIMESTAMP; // $GLOBALS['DATABASE']->query("UPDATE `uni1_users` SET `harvest_time` = 5, `harvest_delay` = ".$time." where `id` = ".$USER['id'].";"); // $this->printMessage("Whe are setting back your harvest counters to 5.", true, array('game.php?page=>harvest', 2)); // die();
// } else{
// $time = TIMESTAMP; // $GLOBALS['DATABASE']->query("UPDATE `uni1_users` SET `harvest_delay` = ".$time." where `id` = ".$USER['id'].";"); // $this->printMessage("Loading your data.", true, array('game.php?page=>harvest', 2)); // die();
// }
}
if(!empty($USER['urlaubs_modus'])){ $this->printMessage("You can't access this page while you are in V mode!", true, array('game.php?page=>overview', 2)); die(); }
if($_POST) {
$mode = HTTP::_GP('con', '');
switch($mode){ case 'extra':
$take = HTTP::_GP('buy',0); $take = $GLOBALS['DATABASE']->escape($take); if(!array_key_exists($take,$this->HarvestPrice)){ $this->printMessage("Invalid Option", true, array('?page=>Harvest', 3)); }else{ //option is ok . go forward //enough dm ? if($USER['darkmatter'] < $this->HarvestPrice[$take]){ $this->printMessage("Not enough DM", true, array('?page=>Harvest', 3)); die(); } $USER['darkmatter'] -= $this->HarvestPrice[$take]; $GLOBALS['DATABASE']->query("Update ".USERS." SET `harvest_time` = `harvest_time` + ".($take)." WHERE `id` = ".$USER['id']." ; "); $this->printMessage("You have bought ".$take." Harvest Points", true, array('?page=>Harvest', 3)); die(); } break; case 'gather':
if (!isset($check_planet) && !isset($check_moons)) $this->redirectTo('game.php?page=harvest'); // If planets and moons array is set if(!isset($check_planet)) $check_planet = array(); // If planets are empty
// sort($check_planet); // $select_all_planets_query = "SELECT id, metal, crystal, deuterium FROM ".PLANETS." WHERE "; // $selected_planet_count = 0; foreach($check_planet as $ID => $Value) { // $select_all_planets_query .= "`id` = '$Value' OR "; // $selected_planet_count++;
$sur = $GLOBALS['DATABASE']->uniquequery("SELECT metal, crystal, deuterium FROM ".PLANETS." WHERE `id` = '".$Value."';");
DH forumlarında vakit geçirmekten keyif alıyor gibisin ancak giriş yapmadığını görüyoruz.
Üye Ol Şimdi DeğilÜye olduğunda özel mesaj gönderebilir, beğendiğin konuları favorilerine ekleyip takibe alabilir ve daha önce gezdiğin konulara hızlıca erişebilirsin.
< Bu mesaj bu kişi tarafından değiştirildi ogamecenter -- 24 Aralık 2014; 0:39:44 >