qingrenjie_chuansongren = qingrenjie_chuansongren or 0 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 == "Thursday" or day == "Saturday" or day == "Sunday") then if (curhour >= 18 and curhour <= 24) then if qingrenjie_chuansongren == 0 then -- qingrenjie_chuansongren = map.MapCreateCreature(3424073512, -1, 5600026, 634, 23094, 645) local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 3000471) msg.DispatchBroadcast(MsgID, -1, -1, -1) end if curmin == 30 then local MsgID = msg.BeginMsgEvent() msg.AddMsgEvent(MsgID, 102, 3000471) msg.DispatchBroadcast(MsgID, -1, -1, -1) end else if qingrenjie_chuansongren ~= 0 then map.MapDeleteCreature(3424073512, -1, qingrenjie_chuansongren) qingrenjie_chuansongren = 0 end end else if qingrenjie_chuansongren ~= 0 then map.MapDeleteCreature(3424073512, -1, qingrenjie_chuansongren) qingrenjie_chuansongren = 0 end end end return { onTimerMin = onTimerMin, }