Include("\\script\\event\\zhaojingling\\event.lua")

function TaskShedule()	
	TaskName("Hu�n luy�n M�c Nh�n")

	local nStartHour = tonumber(date("%H")) + 1
	if nStartHour < 12 then
		nStartHour = 12
	end
	if nStartHour == 24 then
		nStartHour = 0
	end
	--15分钟一次
	TaskInterval(15) --测试
	-- 设置触发时间
	TaskTime(nStartHour, 0)
	
	OutputMsg("===T�m M�c Nh�n===")
	-- 执行无限次
	TaskCountLimit(0)
	------------测试用
	--tbJingLing:Save(tbJingLing.nSortKey, 0, 0)
	----------------
	tbJingLing:GetNextSortTime()
	tbJingLing:SortPaiMing()
end

function TaskContent()
	local nCurHour = tonumber(date("%H"))
	tbJingLing:SortPaiMing()
	if nCurHour >= 0 and nCurHour < 12 then
		return
	end
	OutputMsg("=======Kh�i ��ng ho�t ��ng T�m M�c Nh�n=========")
	RemoteExecute("\\script\\missions\\zhaojingling\\prepare\\preparetimer.lua", "PrepareGame:InitTimer", 0)
end

function GameSvrConnected(dwGameSvrIP)
end
function GameSvrReady(dwGameSvrIP)
end