![]() |
|
dcs mcs time - Printable Version +- LCKB (https://lckb.dev/forum) +-- Forum: ** OLD LCKB DATABASE ** (https://lckb.dev/forum/forumdisplay.php?fid=109) +--- Forum: Guides & Help Section (https://lckb.dev/forum/forumdisplay.php?fid=193) +---- Forum: Help & Support (https://lckb.dev/forum/forumdisplay.php?fid=157) +----- Forum: Ep4 Support (https://lckb.dev/forum/forumdisplay.php?fid=128) +------ Forum: Solved topics (https://lckb.dev/forum/forumdisplay.php?fid=158) +------ Thread: dcs mcs time (/showthread.php?tid=3707) |
- rondo157 - 01-24-2021 Hello all! How to change default dcs and mcs time? For ex: mcs saturday 19:00 and dcs sunday 19:00 thanks rondo157 - Desarija - 01-24-2021 DratanCastle.cpp In void CDratanCastle::SetNextWarTime(int nextWarTime) Quote int next = 7 - curtm.tm_wday; //sunday if (next < 0) next += 7; ... Quote struct tm nexttm = curtm; nexttm.tm_hour = 19; //19:00 nexttm.tm_min = 0; nexttm.tm_sec = 0; nexttm.tm_mday += next; nexttm.tm_isdst = -1; time_t nexttime = mktime(&nexttm); -> DCS on Sunday at 19:00 WarCastle_Merac.cpp In void CMeracCastle::SetNextWarTime(int nextWarTime) Quote struct tm curtm = NOW(); // 다음 토요일을 구함 int next = 6 - curtm.tm_wday; //saturday if (next <= 0) next += 7; ... Quote struct tm nexttm = curtm; nexttm.tm_hour = 19; //19:00 -> MCS on Saturday at 19:00 - rondo157 - 01-24-2021 Yes i found it 3 mins ago thank you #closed - cooldude - 01-24-2021 Hi there.As your topic has been answered, and from this topic you can solve your problem or already have I am going to move this topic into our Solved section database.Thankyou,-LCKB Staff |