Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Add to worldserver part of CSecretRoomMng in the .h:
- CTimer m_ctrMutexOut;
- bool m_bMutex;
- Initialize m_bMutex to FALSE in CSecretRoomMng::CSecretRoomMng worldserver part
- void CSecretRoomMng::Process()
- {
- DWORD dwTick = GetTickCount();
- switch( m_nState ) // ÇöÀç State¿¡¼ ´ÙÀ½ State·Î ³Ñ¾î°¥¶§ ó¸®, m_nState´Â ÇöÀç State
- {
- case SRMNG_CLOSE:
- {
- CTime ctime = CTime::GetCurrentTime();
- if(ctime.GetHour() == 19 && ctime.GetMinute() == 0 && m_bMutex == FALSE) // Start Secret Room Every 24 hours
- {
- m_ctrMutexOut.Set( SEC(60) );
- m_bMutex = TRUE;
- SecretRoomOpen();
- }
- if( m_bMutex && m_ctrMutexOut.IsTimeOut() )
- {
- m_bMutex = FALSE;
- }
- }
- break;
Add Comment
Please, Sign In to add comment