ShowMessage("һһű $Rev: 213 $")

function _SMain(...)

	AI:SetAI("һ")
	AI:SetParameter("ʼ") 
	AI:SetParameter("","ɼ")
	AI:Start()

	AI:SetParameter("в" , "" , 1 )

	local ExpTime = System:GetTickCount()
	local Exp = Player:GetData("EXP")

	while true do
		if AI:IsStop() == true  then
			break 
		end
		
		local NowExp = Player:GetData("ENERGY")
		local NowTime = System:GetTickCount()
		if NowExp ~= Exp then
			Exp = NowExp
			ExpTime = NowTime
		else
			local interval = NowTime - ExpTime
			-- 20޾,ֹͣű
			if interval > 1200000 then 
				break
			end
		end
		 
		System:Sleep(1000)
	end
end

_SMain()