Normally i use that in that way:
Code: Select all
<?xml version="1.0" encoding="utf-8"?><waypoints type="TRAVEL">
<onLoad>
EventMonitorStart("Event", "CHAT_MSG_YELL");
function pingrom()
	ping = RoMScript("GetPing()")
	if ping == nil then
		yrest(60000)
		repeat
			yrest(5000)
			local pingserver = system("ping xxx.xxx.xxx.xxx -n 1")
		until string.find(pingserver, "Lost = 0")
		print("NET ON")
		reloginwin(CurrentLoginChar,CurrentLoginAcc)
		load_paths("thiswaypoint.xml")
	end
end
while (true) do
	pingrom()
	local time, moreToCome, charname, msg = EventMonitorCheck("Event", "4,1")
	if msg ~= nil then
		print(msg)
	end
end
</onLoad>
</waypoints>
How correctly fix that?

 
 
