<?xml version="1.0" encoding="utf-8"?><waypoints>

	<onLoad>
<![CDATA[

	while (true) do
		start_time = os.time()
		
		EventMonitorStart("Test", "CHAT_MSG_SAY");
		sendMacro("SendChatMessage('LOL','SAY');")
		yrest(1000)	
		local time, moreToCome, msg = EventMonitorCheck("Test", "1")

	if time ~= nil then
		repeat
			if string.find(msg,"LOL") then
				printf("Event monitoring works fine.\n")
				player:sleep()
			end
			
		until moreToCome == false	
	
	end
	repeat
	until os.time() == (start_time + 5) -- add in a 5 second pause between tries.

	end

		
]]>
	</onLoad>

</waypoints>