function act() { if (eval(__MAGIC__)) { return $___RET_VALUE; } eval(import_module('sys', 'player', 'input')); if ($mode == 'command' && $command == 'special' && $sp_cmd == 'sp_weapon') { weaponswap(); $mode = 'command'; return; } $chprocess(); }
$mode = 'command'; } else { $choice = (int) $choice; if ($choice < 1 || $choice > 6) { $log .= '<span class="red">无此物品。</span><br />'; } else { include_once GAME_ROOT . './include/game/special.func.php'; trap_adtsk($choice); } $mode = 'command'; } } elseif ($sp_cmd == 'sp_pbomb') { $mode = 'sp_pbomb'; } elseif ($sp_cmd == 'sp_weapon') { include_once GAME_ROOT . './include/game/special.func.php'; weaponswap(); $mode = 'command'; if ($coldtimeon) { $cmdcdtime = $weaponswapcoldtime; } } elseif ($sp_cmd == 'oneonone') { $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; }