forked from st-universe/stu15
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmodules.php
More file actions
18 lines (17 loc) · 916 Bytes
/
modules.php
File metadata and controls
18 lines (17 loc) · 916 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
<?php
include_once("inc/config.inc.php");
include_once("class/db.class.php");
$myDB = new db;
$ship = mysql_fetch_array(mysql_query("SELECT * FROM stu_ships WHERE id=1", $myDB->dblink));
$rump = mysql_fetch_array(mysql_query("SELECT * FROM stu_ships_rumps WHERE id=18", $myDB->dblink));
// H�lle
$getmod = mysql_result(mysql_query("SELECT huell FROM stu_ships_modules WHERE type=1 AND lvl=" . $ship['huellmodlvl'] . "", $myDB->dblink), 0);
$huelle = $rump['huellmod'] * $getmod;
// Schilde
$getmod = mysql_result(mysql_query("SELECT shields FROM stu_ships_modules WHERE type=3 AND lvl=" . $ship['schildmodlvl'] . "", $myDB->dblink), 0);
$schilde = $rump['schildmod'] * $getmod;
// Reaktor
//$reaktor = mysql_result(mysql_query("SELECT shields FROM stu_ships_modules WHERE type=3 AND lvl=".$ship['reaktormodlvl']."",$myDB->dblink));
// Antrieb
echo "max H�lle: " . $huelle . "<br>
max Schilde: " . $schilde . "";