local function onTimerMin(_actID) local curhour = tonumber(os.date("%H")) local curmin = tonumber(os.date("%M")) if curhour % 4 == 0 and curmin == 0 then local ran = math.random(100) local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 101, 440011) msg.DispatchMapMsgEvent(MsgID, 3424073512, -1) if ran < 50 then elseif ran < 67 then elseif ran < 82 then else end elseif (curhour == 1 or curhour == 5 or curhour == 9 or curhour == 13 or curhour == 17 or curhour == 21) and curmin == 0 then if LYSJSR_ID ~= nil and LYSJSR_ID ~= 0 then map.MapDeleteCreature(3424073512, -1, LYSJSR_ID) LYSJSR_ID = 0 end end end return { onTimerMin = onTimerMin, }