itemmix($mixlist); } else { if ($command == "itemadd") { include_once GAME_ROOT . './include/game/itemmain.func.php'; itemadd(); } else { if (strpos($command, 'off') === 0) { include_once GAME_ROOT . './include/game/itemmain.func.php'; $off_item = substr($command, 3); itemoff($off_item); } else { if ($command == "selectclub") { if ($club == 0 && isset($var1) && (int) $var1 <= 16) { $club = (int) $var1; include_once GAME_ROOT . './include/game/clubslct.func.php'; updateskill(); } } else { if ($command == "verify") { $endtime = 1; //用于程序开始时调用,获取全部消息列表 } } } } } } } } } }
function selectclub($id) { global $name, $club; if ($club != 0) { return 1; } if ($id == 0) { return 2; } getclub($name, $c1, $c2, $c3); if ($id == 1) { $club = $c1; updateskill(); return 0; } if ($id == 2) { $club = $c2; updateskill(); return 0; } if ($id == 3) { $club = $c3; updateskill(); return 0; } return 3; }