예제 #1
0
파일: main.php 프로젝트: winddramon/dts
function act()
{
    if (eval(__MAGIC__)) {
        return $___RET_VALUE;
    }
    eval(import_module('sys', 'player', 'input'));
    if ($mode == 'senditem') {
        senditem();
        return;
    }
    if ($mode == 'command' && $command == 'team') {
        if ($teamcmd == 'teamquit') {
            teamquit();
        } else {
            teamcheck();
        }
        return;
    }
    if ($mode == 'team') {
        if ($command == 'teammake') {
            teammake($nteamID, $nteamPass);
            return;
        }
        if ($command == 'teamjoin') {
            teamjoin($nteamID, $nteamPass);
            return;
        }
    }
    $chprocess();
}
예제 #2
0
         } else {
             if ($retval == 1) {
                 $log .= "称号选择失败,称号一旦被选择便无法更改。<br>";
             } else {
                 if ($retval == 2) {
                     $log .= "未选择称号。<br>";
                 } else {
                     $log .= "称号选择非法!<br>";
                 }
             }
         }
         $mode = 'command';
     }
 } elseif ($mode == 'senditem') {
     include_once GAME_ROOT . './include/game/battle.func.php';
     senditem();
 } elseif ($mode == 'combat') {
     include_once GAME_ROOT . './include/game/combat.func.php';
     combat(1, $command);
 } elseif ($mode == 'rest') {
     include_once GAME_ROOT . './include/state.func.php';
     rest($command);
     //		} elseif($mode == 'chgpassword') {
     //			include_once GAME_ROOT.'./include/game/special.func.php';
     //			chgpassword($oldpswd,$newpswd,$newpswd2);
     //		} elseif($mode == 'chgword') {
     //			include_once GAME_ROOT.'./include/game/special.func.php';
     //			chgword($newmotto,$newlastword,$newkillmsg);
 } elseif ($mode == 'corpse') {
     include_once GAME_ROOT . './include/game/itemmain.func.php';
     getcorpse($command);