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(); }
// } 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); } elseif ($mode == 'team') { include_once GAME_ROOT . './include/game/team.func.php'; if ($command == "teammake") { teammake($nteamID, $nteamPass); } if ($command == "teamjoin") { teamjoin($nteamID, $nteamPass); } if ($command == "teamquit") { teamquit($nteamID, $nteamPass); } } elseif ($mode == 'shop') { if (in_array($pls, $shops)) { if ($command == 'shop') { $mode = 'sp_shop'; } else { include_once GAME_ROOT . './include/game/itemmain.func.php'; itembuy($command, $shoptype, $buynum); } } else { $log .= '<span class="yellow">你所在的地区没有商店。</span><br />'; $mode = 'command'; } } elseif ($mode == 'deathnote') { if ($dnname) {