Exemple #1
0
 }
 if ($dev_beacon_number) {
     $query = $query . ", dev_beacon=dev_beacon+{$dev_beacon_number}";
     BuildTwoCol("{$l_beacons} {$l_trade_added}:", $dev_beacon_number, "left", "right");
 }
 if ($dev_emerwarp_number) {
     $query = $query . ", dev_emerwarp=dev_emerwarp+{$dev_emerwarp_number}";
     BuildTwoCol("{$l_ewd} {$l_trade_added}:", $dev_emerwarp_number, "left", "right");
 }
 if ($dev_warpedit_number) {
     $query = $query . ", dev_warpedit=dev_warpedit+{$dev_warpedit_number}";
     BuildTwoCol("{$l_warpedit} {$l_trade_added}:", $dev_warpedit_number, "left", "right");
 }
 if ($dev_minedeflector_number) {
     $query = $query . ", dev_minedeflector=dev_minedeflector+{$dev_minedeflector_number}";
     BuildTwoCol("{$l_deflect} {$l_trade_added}:", $dev_minedeflector_number, "left", "right");
 }
 if ($escapepod_purchase && $playerinfo['dev_escapepod'] != 'Y') {
     $query = $query . ", dev_escapepod='Y'";
     BuildOneCol("{$l_escape_pod} {$l_trade_installed}");
 }
 if ($fuelscoop_purchase && $playerinfo['dev_fuelscoop'] != 'Y') {
     $query = $query . ", dev_fuelscoop='Y'";
     BuildOneCol("{$l_fuel_scoop} {$l_trade_installed}");
 }
 if ($lssd_purchase && $playerinfo['dev_lssd'] != 'Y') {
     $query = $query . ", dev_lssd='Y'";
     BuildOneCol("Warp Analyser {$l_trade_installed}");
 }
 $query = $query . ", turns=turns-1, turns_used=turns_used+1 WHERE ship_id={$playerinfo['ship_id']}";
 $purchase = $db->Execute("{$query}");
Exemple #2
0
 BuildTwoCol("$l_beacons $l_trade_added:", NUMBER($dev_beacon_number) , "left", "right" );
 }
 if($dev_emerwarp_number)
 {
   $query = $query . ", dev_emerwarp=dev_emerwarp+$dev_emerwarp_number";
 BuildTwoCol("$l_ewd $l_trade_added:", NUMBER($dev_emerwarp_number) , "left", "right" );
 }
 if($dev_warpedit_number)
 {
   $query = $query . ", dev_warpedit=dev_warpedit+$dev_warpedit_number";
 BuildTwoCol("$l_warpedit $l_trade_added:", NUMBER($dev_warpedit_number) , "left", "right" );
 }
 if($dev_minedeflector_number)
 {
   $query = $query . ", dev_minedeflector=dev_minedeflector+$dev_minedeflector_number";
 BuildTwoCol("$l_deflect $l_trade_added:", NUMBER($dev_minedeflector_number) , "left", "right" );
 }
 if(($escapepod_purchase) && ($shipinfo[dev_escapepod] != 'Y'))
 {
   $query = $query . ", dev_escapepod='Y'";
   BuildOneCol("$l_escape_pod $l_trade_installed");
 }
 if(($fuelscoop_purchase) && ($shipinfo[dev_fuelscoop] != 'Y'))
 {
   $query = $query . ", dev_fuelscoop='Y'";
   BuildOneCol("$l_fuel_scoop $l_trade_installed");
 }
 if(($lssd_purchase) && ($shipinfo[dev_lssd] != 'Y'))
 {
   $query = $query . ", dev_lssd='Y'";
   BuildOneCol("$l_lssd $l_trade_installed");