示例#1
0
             }
         }
     }
 } elseif ($mode == 'special') {
     include_once GAME_ROOT . './include/game/special.func.php';
     if (strpos($command, 'pose') === 0) {
         $pose = substr($command, 4, 1);
         $log .= "基础姿态变为<span class=\"yellow\">{$poseinfo[$pose]}</span>。<br> ";
         $mode = 'command';
     } elseif (strpos($command, 'tac') === 0) {
         $tactic = substr($command, 3, 1);
         $log .= "应战策略变为<span class=\"yellow\">{$tacinfo[$tactic]}</span>。<br> ";
         $mode = 'command';
     } elseif (strpos($command, 'inf') === 0) {
         $infpos = substr($command, 3, 1);
         chginf($infpos);
     } elseif (strpos($command, 'chkp') === 0) {
         $itmn = substr($command, 4, 1);
         chkpoison($itmn);
     } elseif (strpos($command, 'shop') === 0) {
         $shop = substr($command, 4, 2);
         shoplist($shop);
     } elseif (strpos($command, 'clubsel') === 0) {
         $clubchosen = substr($command, 7, 1);
         include_once GAME_ROOT . './include/game/clubslct.func.php';
         $retval = selectclub($clubchosen);
         if ($retval == 0) {
             $log .= "称号选择成功。<br>";
         } else {
             if ($retval == 1) {
                 $log .= "称号选择失败,称号一旦被选择便无法更改。<br>";
示例#2
0
文件: main.php 项目: winddramon/dts
function act()
{
    if (eval(__MAGIC__)) {
        return $___RET_VALUE;
    }
    eval(import_module('sys', 'player'));
    if ($mode == 'special' && strpos($command, 'inf') === 0) {
        $infpos = substr($command, 3, 1);
        chginf($infpos);
        return;
    }
    $chprocess();
}