local function onTimerMin(_actID) local curhour = tonumber(os.date("%H")) local curmin = tonumber(os.date("%M")) local day = os.date("%A") if (day == "Tuesday" or day == "Sunday") then if 18 == curhour and curmin == 40 then msg.SendWorldSwitchMsg(8, 50, 120, 1, 1142) elseif 19 == curhour and curmin == 02 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 950341) msg.DispatchBroadcast(MsgID, -1, -1, -1) end end if day == "Wednesday" or day == "Sunday" then if 20 == curhour and curmin == 50 then Tianxuanzhe_baoming = 1 msg.SendWorldSwitchMsg(3, 50, 100, 1, 47) elseif 20 == curhour and (curmin == 52 or curmin == 55) then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 300085) msg.DispatchBroadcast(MsgID, -1, -1, -1) end end end return { onTimerMin = onTimerMin, }