CalcStatReq('ReAdd', "{$NextStatPt_Re}"); if ($Gen['growth'] - $ReAdd_Stat_Req < 0) { echo "點數不足!"; exit; } $Gen['growth'] -= $ReAdd_Stat_Req; $Game['reacting'] = $NextStatPt_Re; $ShowCompl = "反應變成 {$Game['reacting']} 了。"; break; case 'ta': if ($Game['targeting'] >= 100) { echo "能力過高!"; exit; } $NextStatPt_Ta = $Game['targeting'] + 1; CalcStatReq('TaAdd', "{$NextStatPt_Ta}"); if ($Gen['growth'] - $TaAdd_Stat_Req < 0) { echo "點數不足!"; exit; } $Gen['growth'] -= $TaAdd_Stat_Req; $Game['targeting'] = $NextStatPt_Ta; $ShowCompl = "命中能力變成 {$Game['targeting']} 了。"; break; default: echo "未定義操作!"; } $sqlgen = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` SET `growth` = '{$Gen['growth']}' WHERE `username` = '{$Gen['username']}' LIMIT 1;"; mysql_query($sqlgen) or die('無法取得基本資訊, 原因1:' . mysql_error() . '<br>' . postFooter()); $sqlgame = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` SET "; switch ($actionb) {
if ($Game_Scrn_Type == 1) { echo "<form action=gmscrn_main.php?action=proc method=post name=frmreturn target={$PriTarget}>"; echo "<div align=left style=\"font-size: 16pt;height: 100%\">完成了!<br>現在你的{$ShowCompl}<br>"; echo "<input type=submit value=\"返回\">"; echo "<input type=hidden value='{$Pl_Value['USERNAME']}' name=Pl_Value[USERNAME]>"; echo "<input type=hidden value='{$Pl_Value['PASSWORD']}' name=Pl_Value[PASSWORD]>"; echo "<input type=hidden name=\"TIMEAUTH\" value=\"{$CFU_Time}\">"; echo "</div>"; echo "</form>"; } elseif ($Game_Scrn_Type == 0) { $disableImg = "{$General_Image_Dir}/neo/plus_sign_grey.gif"; echo "<script type=\"text/JavaScript\">"; echo "parent.document.getElementById('pl_growth').innerHTML = " . $Gen['growth'] . ";"; echo "parent.document.getElementById('" . $stat_added . "_addlink').style.visibility = 'visible';"; if ($stat_added != 'spmax') { CalcStatReq('New', $Game[$stat_added] + 1); echo "parent.document.getElementById('pl_" . $stat_added . "').innerHTML = " . $Game[$stat_added] . ";"; echo "parent.document.getElementById('pl_" . $stat_added . "').style.color = '" . colorConvert($Game[$stat_added]) . "';"; if ($Game[$stat_added] < 150) { echo "parent.document.getElementById('" . $stat_added . "_stat_req').innerHTML = " . $New_Stat_Req . ";"; } echo "if (parseInt(parent.document.getElementById('attacking_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_attacking').innerHTML) >= 150))"; echo "{parent.document.getElementById('attacking_addlink').style.cursor = 'default';parent.document.getElementById('attacking_addlink').src = '{$disableImg}';}"; echo "if (parseInt(parent.document.getElementById('defending_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_defending').innerHTML) >= 150))"; echo "{parent.document.getElementById('defending_addlink').style.cursor = 'default';parent.document.getElementById('defending_addlink').src = '{$disableImg}';}"; echo "if (parseInt(parent.document.getElementById('reacting_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_reacting').innerHTML) >= 150))"; echo "{parent.document.getElementById('reacting_addlink').style.cursor = 'default';parent.document.getElementById('reacting_addlink').src = '{$disableImg}';}"; echo "if (parseInt(parent.document.getElementById('targeting_stat_req').innerHTML) > parseInt(parent.document.getElementById('pl_growth').innerHTML || parseInt(parent.document.getElementById('pl_targeting').innerHTML) >= 150))"; echo "{parent.document.getElementById('targeting_addlink').style.cursor = 'default';parent.document.getElementById('targeting_addlink').src = '{$disableImg}';}"; if ($Game[$stat_added] >= 150) { echo "parent.document.getElementById('" . $stat_added . "_stat_req').innerHTML = 'N/A';";