daily pastebin goal
78%
SHARE
TWEET

Untitled

a guest Oct 21st, 2018 79 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Add to worldserver part of CSecretRoomMng in the .h:
  2. CTimer m_ctrMutexOut;
  3. bool m_bMutex;
  4.  
  5. Initialize m_bMutex to FALSE in CSecretRoomMng::CSecretRoomMng worldserver part
  6.  
  7. void CSecretRoomMng::Process()
  8. {
  9.     DWORD dwTick = GetTickCount();
  10.    
  11.     switch( m_nState )      // ÇöÀç State¿¡¼­ ´ÙÀ½ State·Î ³Ñ¾î°¥¶§ ó¸®, m_nState´Â ÇöÀç State
  12.     {
  13.         case SRMNG_CLOSE:
  14.             {
  15.                 CTime ctime = CTime::GetCurrentTime();
  16.  
  17.                 if(ctime.GetHour() == 19 && ctime.GetMinute() == 0 && m_bMutex == FALSE)        // Start Secret Room Every 24 hours
  18.                 {
  19.                     m_ctrMutexOut.Set( SEC(60) );
  20.                     m_bMutex = TRUE;
  21.                     SecretRoomOpen();
  22.                 }
  23.                 if( m_bMutex && m_ctrMutexOut.IsTimeOut() )
  24.                 {
  25.                     m_bMutex = FALSE;
  26.                 }
  27.             }
  28.             break;
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top