loginGame()->setReadOnly(); $userID = Session::getUserID(); increaseRefresh("메인", 1); $db = DB::db(); $gameStor = KVStorage::getStorage($db, 'game_env'); if (!$userID) { header('Location:..'); die(); } //턴 실행. TurnExecutionHelper::executeAllCommand(); if (!$session->isGameLoggedIn()) { header('Location:..'); die(); } $me = $db->queryFirstRow( 'SELECT no,con,turntime,newmsg,newvote,`officer_level` from general where owner = %i', $userID ); //그새 사망이면 if ($me === null) { $session->logoutGame(); header('Location: ../'); die(); } $gameStor->cacheAll(true); if ($me['newmsg'] == 1 || $me['newvote'] == 1) { $db->update('general', [ 'newmsg' => 0, 'newvote' => 0 ], 'owner=%i', $userID); } $plock = $db->queryFirstField('SELECT plock FROM plock LIMIT 1'); $con = checkLimit($me['con']); if ($con >= 2) { printLimitMsg($me['turntime']); exit(); } $generalObj = General::createGeneralObjFromDB($me['no']); $generalObj->setRawCity($db->queryFirstRow('SELECT * FROM city WHERE city = %i', $generalObj->getCityID())); $scenario = $gameStor->scenario_text; $nationID = $generalObj->getNationID(); if ($nationID) { $nationStor = KVStorage::getStorage($db, $nationID, 'nation_env'); $nationStor->cacheAll(); } if ($gameStor->extended_general == 0) { $extend = "표준"; } else { $extend = "확장"; } if ($gameStor->fiction == 0) { $fiction = "사실"; } else { $fiction = "가상"; } if ($gameStor->npcmode == 0) { $npcmode = "불가능"; } else if ($gameStor->npcmode == 1) { $npcmode = "가능"; } else { $npcmode = "선택 생성"; } $color = "cyan"; $mapTheme = $gameStor->map_theme; $serverName = UniqueConst::$serverName; $serverCnt = $gameStor->server_cnt; $auctionCount = $db->queryFirstField('SELECT count(`no`) FROM auction'); $myNationStatic = getNationStaticInfo($generalObj->getNationID()); $nationColorType = substr($myNationStatic['color'] ?? '#000000', 1); $autorunUser = ($gameStor->autorun_user) ?? []; $otherTextInfo = []; if ($gameStor->join_mode == 'onlyRandom') { $otherTextInfo[] = '랜덤 임관 전용'; } if ($autorunUser['limit_minutes'] ?? false) { $otherTextInfo[] = getAutorunInfo($autorunUser); } if (!$otherTextInfo) { $otherTextInfo = '표준'; } else { $otherTextInfo = join(', ', $otherTextInfo); } ?> <?= $serverName ?>: 메인 GameConst::$maxTurn, 'maxPushTurn' => 12, 'commandList' => getCommandTable($generalObj), 'serverNow' => TimeUtil::now(false), 'baseColor2' => GameConst::$basecolor2, ]) ?>
npcmode == 1) ?>

삼국지 모의전투 HiDCHe ()

NPC수 :
NPC상성 :
NPC선택 :
기타 설정:
전체 접속자 수 : online_user_cnt ?> 명
턴당 갱신횟수 : conlimit ?>회
tournament == 0) : ?> 현재 토너먼트 경기 없음 tnmt_type] ?? '' ?> tournament) ?>
동작 시각: " . substr($gameStor->turntime, 5, 14) . "") : ("동작 시각: " . substr($gameStor->turntime, 5, 14) . "") ?>
0) : ?> 거래 진행중 진행중 거래 없음
vote ?: ['']; $vote_title = Tag2Code($gameStor->vote_title ?? '-'); ?> 진행중 설문 없음 설문 진행중 :
접속중인 국가: online_nation ?>
운영자 메세지 : msg ?>
【 국가방침 】
【 접속자 】
userGrade >= 5) : ?> userGrade == 4) : ?>
장수 동향
개인 기록
중원 정세
npcmode == 1) ?>
전체 메시지(최고99자)
국가 메시지(최고99자)
개인 메시지(최고99자)
외교 메시지(최고99자)
npcmode == 1) ?>
develcost * 5; MessageBox("설문조사에 참여하시면 금{$develcost}과 유니크템을 드립니다! (우측 상단 설문조사 메뉴)"); } ?>
방침 명령 국가 장수 도시
지도 동향 개인 정세
전체 국가 개인 외교