function act() { if (eval(__MAGIC__)) { return $___RET_VALUE; } eval(import_module('sys', 'player', 'logger', 'itemmain', 'itemshop', 'input')); if ($mode == 'command' && $command == 'special' && $sp_cmd == 'sp_shop') { ob_clean(); include template(MOD_ITEMSHOP_SP_SHOP); $cmd = ob_get_contents(); ob_clean(); return; } if ($mode == 'special' && strpos($command, 'shop') === 0) { $shop = substr($command, 4, 2); shoplist($shop); return; } if ($mode == 'shop') { if (check_in_shop_area($pls)) { if ($command == 'menu') { //离开商店 $mode = 'command'; return; } else { if ($command == 'shop') { //返回初级页面 ob_clean(); include template(MOD_ITEMSHOP_SP_SHOP); $cmd = ob_get_contents(); ob_clean(); return; } else { itembuy($command, $shoptype, $buynum); return; } } } else { $log .= '<span class="yellow">你所在的地区没有商店。</span><br />'; $mode = 'command'; return; } } $chprocess(); }
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) { include_once GAME_ROOT . './include/game/item2.func.php'; deathnote($item, $dnname, $dndeath, $dngender, $dnicon, $name); } else { $log .= '嗯,暂时还不想杀人。<br>你合上了■DeathNote■。<br>'; $mode = 'command'; } } elseif ($mode == 'oneonone') { if ($dnname) {