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(); }
$mode = 'oneonone'; } elseif ($sp_cmd == 'sp_skpts') { include_once GAME_ROOT . './include/game/clubskills.func.php'; calcskills($skarr); $p12[1] = 1; $p12[2] = 2; $mode = 'sp_skpts'; } else { $mode = $sp_cmd; } } elseif ($command == 'team') { include_once GAME_ROOT . './include/game/team.func.php'; if ($teamcmd == 'teamquit') { teamquit(); } else { teamcheck(); } } } elseif ($mode == 'item') { include_once GAME_ROOT . './include/game/item2.func.php'; $item = substr($command, 3); use_func_item($usemode, $item); } elseif ($mode == 'itemmain') { include_once GAME_ROOT . './include/game/itemmain.func.php'; if ($command == 'itemget') { itemget(); } elseif ($command == 'itemadd') { itemadd(); } elseif ($command == 'itemmerge') { if ($merge2 == 'n') { itemadd();