当前位置: 首页>>代码示例>>PHP>>正文


PHP GetWeaponDetails函数代码示例

本文整理汇总了PHP中GetWeaponDetails函数的典型用法代码示例。如果您正苦于以下问题:PHP GetWeaponDetails函数的具体用法?PHP GetWeaponDetails怎么用?PHP GetWeaponDetails使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了GetWeaponDetails函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: Floor

     }
     $SellP_B = Floor(($SysWepB['price'] * 0.5 + $SysWepB['price'] * 0.1) / 10000) * 10000;
     echo "<tr align=center>";
     echo "<td width=\"195\">{$SysWepB['name']}</td>";
     echo "<td width=\"80\">" . number_format($SysWepB['atk']) . "</td>";
     echo "<td width=\"30\">{$SysWepB['hit']}</td>";
     echo "<td width=\"30\">{$SysWepB['rd']}</td>";
     echo "<td width=\"40\">{$SysWepB['enc']}</td>";
     $SysWepBSpecs = ReturnSpecs($SysWepB['spec']);
     echo "<td width=\"120\">{$SysWepBSpecs}</td>";
     echo "<td width=\"85\">" . number_format($SellP_B) . "</td>";
     echo "</tr>";
     $SellW_Options .= "<option value=WepB>{$SysWepB['name']}(备用武器一)\n";
 }
 if ($UsrWepC[0]) {
     GetWeaponDetails("{$UsrWepC['0']}", 'SysWepC');
     if ($UsrWepC[2]) {
         if ($UsrWepC[2] == 1) {
             $SysWepC['name'] = $UsrWepC[3] . $SysWepC['name'] . "<sub>?</sub>";
         } else {
             $SysWepC['name'] = $SysWepC['name'] . $UsrWepC[3] . "<sub>?</sub>";
         }
         $SysWepC['atk'] += $UsrWepC[4];
         $SysWepC['hit'] += $UsrWepC[5];
         $SysWepC['rd'] += $UsrWepC[6];
         $SysWepC['enc'] = $UsrWepC[7];
     }
     $SellP_C = Floor(($SysWepC['price'] * 0.5 + $SysWepC['price'] * 0.1) / 10000) * 10000;
     echo "<tr align=center>";
     echo "<td width=\"195\">{$SysWepC['name']}</td>";
     echo "<td width=\"80\">" . number_format($SysWepC[atk]) . "</td>";
开发者ID:Saren-Arterius,项目名称:php-eb,代码行数:31,代码来源:equip_wep.php

示例2: GetWeaponDetails

     }
     if ($i == 1 || $i == 6) {
         echo ' ';
     }
 }
 echo "</td><td><input type=button name='putc' value='加入' onClick=\"actionb.value='put';actionc.value='rawMaterials';mainform.submit()\"></td>";
 echo "</tr>";
 echo "</table><hr>";
 //End Table -- User's Information
 echo "<table align=center border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse\" bordercolor=\"#111111\" width=\"700\">";
 echo "<tr><td colspan=6 align=center>專用化改造的原料庫</td></tr>";
 echo "<tr><td width=150>即將進行專用化工序的武器:</td>";
 if (!$TactFactory['c_wep']) {
     echo "<td colspan=5>沒有";
 } else {
     GetWeaponDetails("{$TactFactory['c_wep']}", 'CustWepS');
     echo "<td colspan=4 width=500>{$CustWepS['name']}</td><td width=50 align=right><input type=button name='reclaimc' value='回收' onClick=\"mainform.action='tactfactory.php?action=main';actionb.value='reclaim';actionc.value='c_wep';mainform.submit()\">";
 }
 echo "</td></tr>";
 if ($TactFactory['c_wep']) {
     echo "<tr><td colspan=6>";
     echo "<table align=center border=\"0\" width=\"100%\">";
     echo "<tr>";
     echo "<td width=50%>";
     echo "<b>已使用的改造點數: </b><span style=\"color: DodgerBlue\" id=pt_left>0</span> / <span id=\"c_points\">{$TactFactory['c_point']}</span>";
     echo "</td><td><b>改造成功\\率: </b><span id=successpc>100</span>% (武器複雜度: <span id='SysGrade'>{$CustWepS['complexity']}</span>)";
     echo "</td></tr><tr><td>";
     $ENCMin = ceil($CustWepS['enc'] * 0.7);
     $AtkMax = floor($CustWepS['atk'] + $CustWepS['atk'] * (100 - ($CustWepS['complexity'] - 1) * 2) * 0.005);
     echo "<b style=\"color: yellow\">攻擊力強化: </b><br><span id='SysAtk'>{$CustWepS['atk']}</span> => <b style=\"color: DodgerBlue\" id=atkc>{$CustWepS['atk']}</b> (上限: {$AtkMax})<br>使用點數: <select name=\"atkc_pt\" onchange=\"custom('atk');\">";
     for ($PtUse_Atk = 0; $PtUse_Atk <= $TactFactory['c_point'] && $PtUse_Atk <= 100 - ($CustWepS['complexity'] - 1) * 2; $PtUse_Atk++) {
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:tact_custom.php

示例3: array

     $ms_js .= "j_" . $v . "[" . $i . "] = " . $setMS[$v] . ";";
 }
 $ms_js .= "j_msname[" . $i . "] = '" . $setMS['msname'] . "';";
 $ms_js .= "j_image[" . $i . "] = '" . $Unit_Image_Dir . "/" . $setMS['image'] . "';";
 $ms_js .= "j_atfc[" . $i . "] = " . $MS_CFix[1] . ";";
 $ms_js .= "j_defc[" . $i . "] = " . $MS_CFix[2] . ";";
 $ms_js .= "j_refc[" . $i . "] = " . $MS_CFix[3] . ";";
 $ms_js .= "j_tafc[" . $i . "] = " . $MS_CFix[4] . ";";
 $Eq_Listing = array('A' => 's_wepa', 'B' => 's_wepb', 'C' => 's_wepc', 'D' => 's_eqwep', 'E' => 's_p_equip');
 foreach ($Eq_Listing as $I => $V) {
     $S_Wep = 'S_Wep' . $I;
     $S_SyWep = 'S_SyWep' . $I;
     $W_Inf = 'W_Inf' . $I;
     if ($setMS[$V] && $setMS[$V] != '0<!>0') {
         ${$S_Wep} = split('<!>', $setMS[$V]);
         GetWeaponDetails(${$S_Wep}[0], $S_SyWep);
         ${$S_Wep}[2] = isset(${$S_Wep}[2]) ? ${$S_Wep}[2] : 0;
         if (${$S_Wep}[2]) {
             if (${$S_Wep}[2] == 1) {
                 ${$S_SyWep}['name'] = ${$S_Wep}[3] . ${$S_SyWep}['name'] . "<sub>&copy;</sub>";
             } else {
                 ${$S_SyWep}['name'] = ${$S_SyWep}['name'] . ${$S_Wep}[3] . "<sub>&copy;</sub>";
             }
             ${$S_SyWep}['atk'] += ${$S_Wep}[4];
             ${$S_SyWep}['hit'] += ${$S_Wep}[5];
             ${$S_SyWep}['rd'] += ${$S_Wep}[6];
             ${$S_SyWep}['enc'] = ${$S_Wep}[7];
         }
         if (${$S_Wep}[1] > 0) {
             ${$S_Wep}['displayXp'] = '+' . ${$S_Wep}[1] / 100 . '%';
         } elseif (${$S_Wep}[1] < 0) {
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:buysetms.php

示例4: unset

             }
             $counterc++;
         }
         //Analysed right or wrong
         if (!$WrongFlag) {
             $ChosenTact = $Tacticals['wep_id'];
         }
     }
 }
 //Analysed Chosen Weapon
 //Grant Chosen Weapon
 if ($ChosenTact) {
     unset($sql);
     $sql = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_game_info` SET `{$TargetGrant}` = '" . $ChosenTact . "<!>0' WHERE `username` = '{$Pl_Value['USERNAME']}' LIMIT 1;";
     mysql_query($sql);
     GetWeaponDetails("{$ChosenTact}", 'TheResultWep');
     $CastResult = "製造成功\\了!<br>你成功\\製造出 <font color=blue>" . $TheResultWep['name'] . "</font> !";
 } else {
     $CastResult = "製造失敗了。也許你應改改配方。";
 }
 unset($sql);
 $sql = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_tactfactory` SET `time` = '{$CFU_Time}', `m1` = '', `m2` = '', `m3` = NULL, `m4` = NULL, `m5` = NULL, `m6` = NULL, `m7` = NULL, `m8` = NULL, `m9` = NULL, `m10` = NULL, `m11` = NULL, `m12` = NULL, `m13` = NULL, `m14` = NULL, `m15` = NULL, `m16` = NULL, `m17` = NULL, `m18` = NULL, `m19` = NULL, `m20` = NULL WHERE `username` = '{$Pl_Value['USERNAME']}' LIMIT 1";
 mysql_query($sql) or die(mysql_error());
 unset($sql);
 echo "<form action=tactfactory.php?action=main method=post name=freect target=Beta>";
 echo "<input type=hidden value='none' name=actionb>";
 echo "<input type=hidden value='none' name=actionc>";
 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 "</form>";
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:tactfactory.php

示例5: mysql_query

 $sql_game_results = mysql_query($sql_game) or die('出錯2, 原因:' . mysql_error() . '<br>');
 $Op_Game = mysql_fetch_array($sql_game_results);
 if ($Op_Gen['msuit']) {
     $Op_Repaired = AutoRepair("{$Op_Gen['username']}");
     $Op_Game['hp'] = $Op_Repaired['hp'];
     $Op_Game['en'] = $Op_Repaired['en'];
     $Op_Game['sp'] = $Op_Repaired['sp'];
     $Op_Game['status'] = $Op_Repaired['status'];
 }
 $Op_WepA = explode('<!>', $Op_Game['wepa']);
 $CeaseAtkTar = '';
 if ($Op_Game['organization'] == $Pl_Game['organization'] && $Pl_Game['organization'] != '0') {
     $CeaseAtkTar = '1';
 }
 if ($Op_WepA[0] && !$Op_Game['status'] && !$CeaseAtkTar) {
     GetWeaponDetails("{$Op_WepA['0']}", 'Op_SyWepA');
     GetMsDetails("{$Op_Gen['msuit']}", 'Op_Ms');
     $Op_Org = ReturnOrg($Op_Game['organization']);
     if ($Op_Game['organization']) {
         $Op_Rank = ' ' . rankConvert($Op_Game['rank']);
     }
     if ($Op_Game['rights'] == '1') {
         $Op_RightsTitle = "<font style=\"color: yellow;font-weight: Bold;\">&nbsp;" . $RightsClass['Major'] . "</font>";
     } elseif ($Op_Game['rights']) {
         $Op_RightsTitle = "<font style=\"color: yellow;font-weight: Bold;\">&nbsp;" . $RightsClass['Leader'] . "</font>";
     }
     $mini_c++;
     echo "<tr align=center style=\"color: {$Op_Gen['color']}\">";
     echo "<td width=\"20\">{$mini_c}</td>";
     echo "<td width=\"250\">";
     echo "{$Op_Game['gamename']}";
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:battle-dfilter.php

示例6: unset

 echo "<td>{$Hangar['def']}</td>";
 echo "<td>{$Hangar['ref']}</td>";
 echo "<td>{$Hangar['taf']}</td>";
 echo "<td>{$Hangar['h_hp']}</td>";
 echo "<td>{$Hangar['h_hpmax']}</td>";
 echo "<td>{$Hangar['h_en']}</td>";
 echo "<td>{$Hangar['h_enmax']}</td>";
 unset($I);
 $Eq_Listing = array('A' => 'h_wepa', 'B' => 'h_wepb', 'C' => 'h_wepc', 'D' => 'h_eqwep', 'E' => 'h_p_equip');
 foreach ($Eq_Listing as $I => $V) {
     $H_Wep = 'H_Wep' . $I;
     $H_SyWep = 'H_SyWep' . $I;
     $W_Inf = 'W_Inf' . $I;
     if ($Hangar[$V] && $Hangar[$V] != '0<!>0') {
         ${$H_Wep} = split('<!>', $Hangar[$V]);
         GetWeaponDetails(${$H_Wep}[0], $H_SyWep);
         if (${$H_Wep}[2]) {
             if (${$H_Wep}[2] == 1) {
                 ${$H_SyWep}['name'] = ${$H_Wep}[3] . ${$H_SyWep}['name'] . "<sub>&copy;</sub>";
             } else {
                 ${$H_SyWep}['name'] = ${$H_SyWep}['name'] . ${$H_Wep}[3] . "<sub>&copy;</sub>";
             }
             ${$H_SyWep}['atk'] += ${$H_Wep}[4];
             ${$H_SyWep}['hit'] += ${$H_Wep}[5];
             ${$H_SyWep}['rd'] += ${$H_Wep}[6];
             ${$H_SyWep}['enc'] = ${$H_Wep}[7];
         }
         ${$W_Inf} = ${$H_SyWep}['name'] . "<br>經驗: " . ${$H_Wep}[1] . "<hr width=95%>能力:<br>";
         ${$W_Inf} .= " 攻擊力: " . ${$H_SyWep}['atk'] . "   回數: " . ${$H_SyWep}['rd'] . "<br> 命中: " . ${$H_SyWep}['hit'] . "   EN消費: " . ${$H_SyWep}['enc'] . "<br>";
         ${$W_Inf} .= "特殊效果:<br>";
         if (${$H_SyWep}['equip']) {
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:hangar.php

示例7: while

         echo " selected";
     }
     echo ">{$selected_wep['name']}\n";
 } while ($selected_wep = mysql_fetch_array($query_wep_list));
 echo "</select><input type=submit value=檢視></td>";
 echo "<td>";
 echo "Next Evolution<br>{$Next_Ev}</td>";
 echo "</tr></form>";
 if ($SearchField['Name']) {
     echo "<tr>";
     echo "<td colspan=3> <span style=\"font-size: 20;color: yellow;font-weight:600;font-family: Arial\">{$search_wep_inf['name']}</span><br><hr width=70% style=\"filter:alpha(opacity=100,finishopacity=40,style=2)\">";
     echo "<table align=center border=\"0\" width=\"100%\" style=\"font-size: 12; font-family: Arial\">";
     echo "<tr align=center>";
     echo "<td width=33%>Evolution Grade:<br>";
     if ($search_wep_inf['familyid']) {
         GetWeaponDetails($search_wep_inf['familyid'], "searchfamilyinf");
         echo "<b style=\"font-size: 15; color: blue\">{$searchfamilyinf['name']}系</b><font style=\"font-size: 15; color: red\">第{$search_wep_inf['grade']}代</font>";
     } else {
         echo "不適用";
     }
     echo "</font></td>";
     echo "<td width=34%>Price: " . number_format($search_wep_inf['price']) . "元</td>";
     echo "<td width=33%>Enery Cost: " . number_format($search_wep_inf['enc']) . "</td>";
     echo "</tr><tr><td colspan=3><hr width=70% style=\"filter:alpha(opacity=100,finishopacity=40,style=2)\"></td></tr>";
     echo "<tr height=300 style=\"font-size: 16;\">";
     echo "<td valign=top width=20%><b>攻擊力:</b> <br>";
     echo number_format($search_wep_inf['atk']);
     echo "<br><br><b>攻擊回數:</b><br>";
     echo number_format($search_wep_inf['rd']);
     echo "<br><br><b>命中:</b><br>";
     echo number_format($search_wep_inf['hit']);
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:gen_info.php

示例8: ereg_replace

     $Op_SyWepE['atk'] += $Op_WepE[4];
     $Op_SyWepE['hit'] += $Op_WepE[5];
     $Op_SyWepE['rd'] += $Op_WepE[6];
     $Op_SyWepE['enc'] = $Op_WepE[7];
     if (ereg('(CostSP)+', $Op_SyWepE['spec'])) {
         $a = ereg_replace('.*CostSP<', '', $Op_SyWepE['spec']);
         $a = intval($a);
         $SP_CostOP += ceil($a * 0.5);
     }
     unset($a);
 }
 if ($Op_Tactics['spec'] == 'AllWepStirke') {
     $Op_WepB = explode('<!>', $Op_Game['wepb']);
     GetWeaponDetails("{$Op_WepB['0']}", 'Op_SyWepB');
     $Op_WepC = explode('<!>', $Op_Game['wepc']);
     GetWeaponDetails("{$Op_WepC['0']}", 'Op_SyWepC');
 }
 if (ereg('(DoubleStrike)+', $Pl_Tactics['spec'])) {
     $Pl_SyWepA['enc'] *= 2;
 }
 if (ereg('(TripleStrike)+', $Pl_Tactics['spec'])) {
     $Pl_SyWepA['enc'] *= 3;
 }
 if (ereg('(DoubleStrike)+', $Op_Tactics['spec'])) {
     $Op_SyWepA['enc'] *= 2;
 }
 if (ereg('(TripleStrike)+', $Op_Tactics['spec'])) {
     $Op_SyWepA['enc'] *= 3;
 }
 if (!$Pl_WepA[0]) {
     echo "你沒有裝備武器,不能出擊。";
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:battle-2.php

示例9: GetWeaponDetails

     if ($PrInf_WepA[2] == 1) {
         $Pr_SyWepA['name'] = $PrInf_WepA[3] . $Pr_SyWepA['name'] . "<sub>&copy;</sub>";
     } else {
         $Pr_SyWepA['name'] = $Pr_SyWepA['name'] . $PrInf_WepA[3] . "<sub>&copy;</sub>";
     }
 }
 GetWeaponDetails("{$PrInf_WepD['0']}", 'Pr_SyWepD');
 if ($PrInf_WepD[2]) {
     if ($PrInf_WepD[2] == 1) {
         $Pr_SyWepD['name'] = $PrInf_WepD[3] . $Pr_SyWepD['name'] . "<sub>&copy;</sub>";
     } else {
         $Pr_SyWepD['name'] = $Pr_SyWepD['name'] . $PrInf_WepD[3] . "<sub>&copy;</sub>";
     }
 }
 if ($PrInf_WepE[0]) {
     GetWeaponDetails("{$PrInf_WepE['0']}", 'Pr_SyWepE');
     if ($PrInf_WepE[2]) {
         if ($PrInf_WepE[2] == 1) {
             $Pr_SyWepE['name'] = $PrInf_WepE[3] . $Pr_SyWepE['name'] . "<sub>&copy;</sub>";
         } else {
             $Pr_SyWepE['name'] = $Pr_SyWepE['name'] . $PrInf_WepE[3] . "<sub>&copy;</sub>";
         }
     }
 }
 echo "使用武器: {$Pr_SyWepA['name']}<br>";
 echo "輔助裝備: {$Pr_SyWepD['name']}<br>";
 if ($PrInf_WepE[0]) {
     echo "常規裝備: {$Pr_SyWepE['name']}<br>";
 }
 echo "</td><td align=center>";
 echo "<img src=\"" . $Unit_Image_Dir . "/{$PlayerInf['image']}\"><br>{$PlayerInf['msname']}";
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:information.php

示例10: unset

 echo "<td width=\"20\">No.</td>";
 echo "<td width=\"195\">武器名稱</td>";
 echo "<td width=\"80\">攻擊力</td>";
 echo "<td width=\"30\">命中</td>";
 echo "<td width=\"30\">回數</td>";
 echo "<td width=\"40\">EN消費</td>";
 echo "<td width=\"120\">特殊效果</td>";
 echo "<td width=\"85\">價錢</td>";
 echo "<td width=\"50\">經驗</td>";
 echo "</tr>";
 $SelWepOpt = '';
 if ($Countnumwhwp > 0 && $Warehouse[1] != '') {
     for ($ctwp = 0; $ctwp < $Countnumwhwp; $ctwp++) {
         unset($WhThisInfoSys, $WhThisInfo, $WhThisSpec);
         $WhThisInfo = explode('<!>', $WarehseWeps[$ctwp]);
         GetWeaponDetails("{$WhThisInfo['0']}", 'WhThisInfoSys');
         $WhThisSpec = ReturnSpecs($WhThisInfoSys['spec']);
         if ($WhThisInfo[2]) {
             if ($WhThisInfo[2] == 1) {
                 $WhThisInfoSys['name'] = $WhThisInfo[3] . $WhThisInfoSys['name'] . "<sub>&copy;</sub>";
             } else {
                 $WhThisInfoSys['name'] = $WhThisInfoSys['name'] . $WhThisInfo[3] . "<sub>&copy;</sub>";
             }
             $WhThisInfoSys['atk'] += $WhThisInfo[4];
             $WhThisInfoSys['hit'] += $WhThisInfo[5];
             $WhThisInfoSys['rd'] += $WhThisInfo[6];
             $WhThisInfoSys['enc'] = $WhThisInfo[7];
         }
         $SelWepOpt .= "<option value = {$ctwp}>(No. {$ctwp}) {$WhThisInfoSys['name']} (經驗: {$WhThisInfo['1']})";
         echo "<tr align=center>";
         echo "<td width=\"20\">{$ctwp}</td>";
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:warehouse.php

示例11: confirmCustom

    echo "</td></tr>";
    echo "<tr><td align=center><input type=submit value='合成確認' onClick='return confirmCustom()'>";
    echo "</td></tr>";
    echo "</table></form><hr><br><br><br><br>";
} elseif ($mode == 'ms_pequip' && $actionb == 'Process') {
    if ($Game['p_equip'] != '0<!>0') {
        echo "已經進行過機體裝備合成工程!";
        postFooter();
        exit;
    } elseif ($Game['eqwep'] == '0<!>0' || !$Game['eqwep']) {
        echo "請先裝備輔助裝備!";
        postFooter();
        exit;
    } else {
        $Pl_EqWep = explode('<!>', $Game['eqwep']);
        GetWeaponDetails("{$Pl_EqWep['0']}", 'Pl_SyEqWep');
    }
    if (isset($secureCustom)) {
        $secureCustom = 1;
        if ($Pl_SyEqWep['complexity'] * 10 + $Pl_Ms['needlv'] * 2 > $TactFactory['c_point']) {
            echo "改造點數不足!";
            postFooter();
            exit;
        }
    } else {
        $secureCustom = 0;
    }
    $PercentageDisplay = (150 - $Pl_Ms['needlv']) * $Mod_MS_pequip_c * 100;
    if ($PercentageDisplay > 10000) {
        $PercentageDisplay = 10000;
    } elseif ($PercentageDisplay < 0) {
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:ms_custom.php

示例12: GetWeaponDetails

             $Pl_WepBS['name'] = $Pl_WepB[3] . $Pl_WepBS['name'] . "<sub>&copy;</sub>";
         } else {
             $Pl_WepBS['name'] = $Pl_WepBS['name'] . $Pl_WepB[3] . "<sub>&copy;</sub>";
         }
         $Pl_WepBS['atk'] += $Pl_WepB[4];
         $Pl_WepBS['hit'] += $Pl_WepB[5];
         $Pl_WepBS['rd'] += $Pl_WepB[6];
         $Pl_WepBS['enc'] = $Pl_WepB[7];
     }
     echo " 備用武器一:<br>  " . $Pl_WepBS['name'] . " <input type=radio value='wepb' name=sellslot>";
 }
 if ($Pl_WepB[0] && $Pl_WepC[0]) {
     echo "<br>";
 }
 if ($Pl_WepC[0]) {
     GetWeaponDetails($Pl_WepC[0], 'Pl_WepCS');
     if ($Pl_WepC[2]) {
         if ($Pl_WepC[2] == 1) {
             $Pl_WepCS['name'] = $Pl_WepC[3] . $Pl_WepCS['name'] . "<sub>&copy;</sub>";
         } else {
             $Pl_WepCS['name'] = $Pl_WepCS['name'] . $Pl_WepC[3] . "<sub>&copy;</sub>";
         }
         $Pl_WepCS['atk'] += $Pl_WepC[4];
         $Pl_WepCS['hit'] += $Pl_WepC[5];
         $Pl_WepCS['rd'] += $Pl_WepC[6];
         $Pl_WepCS['enc'] = $Pl_WepC[7];
     }
     echo " 備用武器二:<br>  " . $Pl_WepCS['name'] . " <input type=radio value='wepc' name=sellslot>";
 }
 echo "<br><b>賣給</b><br>";
 unset($sql, $query, $BankUsers, $c_rcb);
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:bank.php

示例13: cfmOccupy

     echo "function cfmOccupy(){";
     echo "if ({$Pl_Org['funds']} < " . $Area["Sys"]["occprice"] . "){alert('組織資金不足!');return false;}";
     echo "else if (confirm('以 " . $Area["Sys"]["occprice"] . " 佔地此地區, 可以嗎?')==true){return true;}";
     echo "else {return false;}";
     echo "}</script>";
     echo "<table align=center border=\"1\" cellpadding=\"0\" cellspacing=\"0\" style=\"border-collapse: collapse;font-size: 10pt;\" bordercolor=\"#FFFFFF\">";
     echo "<tr><td align=left width=280><b style=\"font-size: 10pt;\">佔領此區域: </b></td></tr>";
     echo "<tr><td align=left width=280><b style=\"font-size: 10pt;\">區域: {$Gen['coordinates']}</b><br>";
     echo "組織資金: " . number_format($Pl_Org['funds']) . "元<br>";
     echo "佔領費用: " . number_format($Area["Sys"]["occprice"]) . "元<br>";
     $Area_At = $Area["Sys"]["at"];
     $Area_De = $Area["Sys"]["de"];
     $Area_Ta = $Area["Sys"]["ta"];
     echo "要塞初期能力:<br>HP上限: " . $Area["Sys"]["hpmax"];
     echo "<br>攻擊力: {$Area_At} 防衛力: {$Area_De} 命中: {$Area_Ta}<br>";
     GetWeaponDetails($Area["Sys"]["wepa"], 'FortDfltWep');
     echo "防禦武器: {$FortDfltWep['name']}<br>";
     echo "<input type=submit value=佔領此區域 onClicl=\"return cfmOccupy()\">";
     echo "</td></tr>";
     echo "</form></table>";
 } elseif ($actionb == 'B') {
     if ($Opt_Info['ticket_a'] < 1) {
         $Opt_Info['ticket_a'] = 1;
     } elseif ($Opt_Info['ticket_a'] > $ticketMax) {
         $Opt_Info['ticket_a'] = $ticketMax;
     }
     $HistoryWrite = "<font color=\"{$Pl_Org['color']}\">{$Pl_Org['name']}</font> 成功\\把 {$Gen['coordinates']} 區域佔領了!";
     WriteHistory($HistoryWrite);
     unset($sql, $query);
     $sql = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_map` SET `hpmax` = '" . $Area["Sys"]["hpmax"] . "' ,`hp`=`hpmax` ,`at` ='" . $Area["Sys"]["at"] . "', `de` ='" . $Area["Sys"]["de"] . "', `ta` ='" . $Area["Sys"]["ta"] . "', `wepa` ='" . $Area["Sys"]["wepa"] . "', `occupied` = '{$Game['organization']}', `tickets` = '' WHERE `map_id` = '{$Gen['coordinates']}' LIMIT 1;";
     $query = mysql_query($sql) or die(mysql_error());
开发者ID:c0re100,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:organization.php

示例14: mysql_query

     if (ereg('(EXAMSystem)+', $BuyMsDVal['spec']) && !ereg('(EXAMSystem)+', $GameVal['spec']) && ereg('(nat|enh|ext)+', $GenVal['typech'])) {
         $GameVal['spec'] .= 'EXAMSystem, ';
         $sql .= "`spec` = '{$GameVal['spec']}', ";
     }
     $sql .= "`en` = {$GameVal['en']} WHERE `username` = '{$Pl_Value['USERNAME']}' LIMIT 1;";
     mysql_query($sql);
     $sql = "UPDATE `" . $GLOBALS['DBPrefix'] . "phpeb_user_general_info` SET `cash` = '{$GenVal['cash']}',\r\n`msuit` = {$GenVal['msuit']} WHERE `username` = '{$Pl_Value['USERNAME']}' LIMIT 1;";
     mysql_query($sql);
     echo "<form action=gmscrn_main.php?action=proc method=post name=frmreturn target=Alpha>";
     echo "<p align=center style=\"font-size: 16pt\">购买完成了!<br><input type=submit value=\"返回\" onClick=\"parent.Beta.location.replace('gen_info.php')\"></p>";
 } elseif ($actionc == 'sell') {
     GetMsDetails("{$GenVal['msuit']}", 'NowMS');
     $Pl_WepD = explode('<!>', $GameVal['eqwep']);
     GetWeaponDetails("{$Pl_WepD['0']}", 'Pl_SyWepD');
     $Pl_WepE = explode('<!>', $GameVal['p_equip']);
     GetWeaponDetails("{$Pl_WepE['0']}", 'Pl_SyWepE');
     if (!$GenVal['msuit']) {
         echo "你没有机体!!<br>";
         PostFooter();
         exit;
     }
     $SellPrice = Floor($NowMS['price'] / 2 + $NowMS['price'] * 0.2);
     $GenVal['cash'] = $GenVal['cash'] + $SellPrice;
     $GameVal['hpmax'] = $GameVal['hpmax'] - $NowMS['hpfix'];
     $GameVal['enmax'] = $GameVal['enmax'] - $NowMS['enfix'];
     $GenVal['msuit'] = '0';
     $HP_Sub = $EN_Sub = 0;
     if (ereg('(ExtHP)+', $Pl_SyWepE['spec'])) {
         $a = ereg_replace('.*ExtHP<', '', $Pl_SyWepE['spec']);
         $HP_Sub = intval($a);
     }
开发者ID:Saren-Arterius,项目名称:php-eb,代码行数:31,代码来源:equip.php

示例15: number_format

 echo "<td align=right style=\"border:1px solid #404040;\" width=\"124\"><b>" . number_format($UsrGenrl['cash']) . "</b></td></tr></table>";
 echo "</center>";
 echo "</div></td>";
 echo "<td width=\"2%\">&#12288;</td>";
 echo "<td width=\"34%\" valign=top>";
 if ($UsrGenrl['msuit']) {
     $UsrWepA = explode('<!>', $PlGameVal['wepa']);
     $UsrWepB = explode('<!>', $PlGameVal['wepb']);
     $UsrWepC = explode('<!>', $PlGameVal['wepc']);
     $UsrWepD = explode('<!>', $PlGameVal['eqwep']);
     $UsrWepE = explode('<!>', $PlGameVal['p_equip']);
     GetWeaponDetails("{$UsrWepA['0']}", 'SysWepA');
     GetWeaponDetails("{$UsrWepB['0']}", 'SysWepB');
     GetWeaponDetails("{$UsrWepC['0']}", 'SysWepC');
     GetWeaponDetails("{$UsrWepD['0']}", 'SysWepD');
     GetWeaponDetails("{$UsrWepE['0']}", 'SysWepE');
     if ($UsrWepA[2] == 1) {
         $SysWepA['name'] = $UsrWepA[3] . $SysWepA['name'];
     } elseif ($UsrWepA[2] == 2) {
         $SysWepA['name'] = $SysWepA['name'] . $UsrWepA[3];
     }
     if ($UsrWepB[2] == 1) {
         $SysWepB['name'] = $UsrWepB[3] . $SysWepB['name'];
     } elseif ($UsrWepB[2] == 2) {
         $SysWepB['name'] = $SysWepB['name'] . $UsrWepB[3];
     }
     if ($UsrWepC[2] == 1) {
         $SysWepC['name'] = $UsrWepC[3] . $SysWepC['name'];
     } elseif ($UsrWepC[2] == 2) {
         $SysWepC['name'] = $SysWepC['name'] . $UsrWepC[3];
     }
开发者ID:Jasonlhy,项目名称:PHP-Endless-Battle,代码行数:31,代码来源:gmscrn_main.php


注:本文中的GetWeaponDetails函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。