echo "Der Warpkern muss erst geladen werden!<br />"; } else { $schiff->warpkernstatus = 1 - $schiff->warpkernstatus; mysql_query("UPDATE schiffe SET warpkernstatus=1-warpkernstatus WHERE id='{$schiff->id}'"); if ($schiff->warpkernstatus == 1) { echo "<span class=\"success\">Warpkern wurde aktiviert!</span><br />"; } else { echo "<span class=\"error\">Warpkern wurde deaktiviert!</span><br />"; } } } //looten if ($_GET["do"] == 15) { if (ctype_digit($_GET["tid"])) { $shp = new Schiffe($_GET["tid"]); echo $schiff->fehler[$schiff->looten($shp)]; } } // wurmloch if ($_POST["do"] == 913 && $cur_feld->feld->wurmloch) { $schiff->position->x = $cur_feld->ziel->x; $schiff->position->y = $cur_feld->ziel->y; $schiff->position->system = new System($cur_feld->ziel->system); $cur_feld = new Weltraum($schiff->position->x, $schiff->position->y, $schiff->position->system->id, $schiff->position->system->id > 0); mysql_query("UPDATE schiffe SET x='" . $schiff->position->x . "',y='" . $schiff->position->y . "',system='" . $schiff->position->system->id . "' WHERE id='" . $schiff->id . "'"); } //schilde anmachen if ($_POST["do"] == 4) { echo $schiff->fehler[$schiff->schilde()]; } //einsaugen deut