Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Cum sa faci sa iesi mai repede
- sa schimbi caracterul /logout/iesire rapida
- fara sa bagi sisteme :
- I. Intra in (sursa game)cmd_general.cpp
- * Cauta functia :
- ACMD(do_cmd)
- {
- /* RECALL_DELAY
- if (ch->m_pkRecallEvent != NULL)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("취소 되었습니다."));
- event_cancel(&ch->m_pkRecallEvent);
- return;
- }
- // END_OF_RECALL_DELAY */
- if (ch->m_pkTimedEvent)
- {
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("취소 되었습니다."));
- event_cancel(&ch->m_pkTimedEvent);
- return;
- }
- switch (subcmd)
- {
- case SCMD_LOGOUT:
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("로그인 화면으로 돌아 갑니다. 잠시만 기다리세요."));
- break;
- case SCMD_QUIT:
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("게임을 종료 합니다. 잠시만 기다리세요."));
- break;
- case SCMD_PHASE_SELECT:
- ch->ChatPacket(CHAT_TYPE_INFO, LC_TEXT("캐릭터를 전환 합니다. 잠시만 기다리세요."));
- break;
- }
- int nExitLimitTime = 10;
- if (ch->IsHack(false, true, nExitLimitTime) &&
- false == CThreeWayWar::instance().IsSungZiMapIndex(ch->GetMapIndex()) &&
- (!ch->GetWarMap() || ch->GetWarMap()->GetType() == GUILD_WAR_TYPE_FLAG))
- {
- return;
- }
- switch (subcmd)
- {
- case SCMD_LOGOUT:
- case SCMD_QUIT:
- case SCMD_PHASE_SELECT:
- {
- TimedEventInfo* info = AllocEventInfo<TimedEventInfo>();
- {
- if (ch->IsPosition(POS_FIGHTING))
- info->left_second = 10;
- else
- info->left_second = 3;
- }
- info->ch = ch;
- info->subcmd = subcmd;
- strlcpy(info->szReason, argument, sizeof(info->szReason));
- ch->m_pkTimedEvent = event_create(timed_event, info, 1);
- }
- break;
- }
- }
- * Modifica doar :
- int nExitLimitTime = 10;(aici bagi 1)
- if (ch->IsPosition(POS_FIGHTING))
- info->left_second = 10; ( aici bagi 1)
- else
- info->left_second = 3; (aici bagi 0)
- * Exemplu :
- int nExitLimitTime = 1;
- if (ch->IsPosition(POS_FIGHTING))
- info->left_second = 1;
- else
- info->left_second = 0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement