local function onTimerMin(_actID) local curmon = tonumber(os.date("%m")) local curday = tonumber(os.date("%d")) local curhour = tonumber(os.date("%H")) local curmin = tonumber(os.date("%M")) if lucky == 1 then if (curhour == 21 and curmin == 0) then dianmingIni() local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 209001) msg.DispatchBroadcast(MsgID, -1, -1, -1) end if (curhour == 2 and curmin == 0) then GetGiftRoleID = {} end if (curmon == 1 and curday == 22) or (curmon == 2 and curday == 6) or (curmon == 2 and curday == 14) then if (curhour == 21 and curmin ~= 0 and curmin % 10 == 0) then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 209003) msg.DispatchBroadcast(MsgID, -1, -1, -1) elseif (curhour == 22 and curmin % 10 == 0) then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 209004) msg.DispatchBroadcast(MsgID, -1, -1, -1) elseif (curhour == 23 and curmin % 10 == 0) then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 209005) msg.DispatchBroadcast(MsgID, -1, -1, -1) end if (curhour == 21 and curmin ~= 0 and curmin % 2 == 0) or (curhour >= 22 and curhour <= 23 and curmin % 2 == 0) or (curhour == 23 and curmin == 59) then dianmingSpe(curhour, curmin) end else if (curhour == 21 and curmin ~= 0 and curmin % 10 == 0) then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 209002) msg.DispatchBroadcast(MsgID, -1, -1, -1) end if ((curhour == 21 and curmin ~= 0 and curmin % 2 == 0) or (curhour == 22 and curmin == 0)) then dianmingNor(curhour, curmin) end end end end return { onTimerMin = onTimerMin, }