Page 1 of 1

EventMonitorCheck

Posted: Sat Feb 11, 2012 6:44 am
by richi
Does anybody know what's wrong with

Code: Select all


 EventMonitorStart("Event", "WARNING_MESSAGE");
local time, moreToCome, name, msg = EventMonitorCheck("Event", "4,1")
if msg ~= nil then
if string.find(msg,"event") then
__WPL:setWaypointIndex(__WPL:findWaypointTag("start"));

end
end

?

Re: EventMonitorCheck

Posted: Sat Feb 11, 2012 7:51 am
by rock5
Well... what happens and what do you expect to happen?

My guess is you have all that code in a waypoint but "EventMonitorStart" wipes any previous messages. If you just check for messages immediately after starting the event monitor you will never get any messages.

You should probably do the EventMonitorStart in the onload section of waypoint so it only does it once then check for messages every now and then in your waypoints.

Re: EventMonitorCheck

Posted: Sat Feb 11, 2012 8:01 am
by richi
I want to prove the Zone Chat in Tergothen Bay on "Regional event now restarting" and it happens nothing.

Re: EventMonitorCheck

Posted: Sat Feb 11, 2012 4:32 pm
by kkulesza
richi wrote:I want to prove the Zone Chat in Tergothen Bay on "Regional event now restarting" and it happens nothing.
Install "EventWatch" addon. It is rom addon. Check if "WARNING_MESSAGE" event is responsible for "Regional event now restarting". I believe it is not.

Re: EventMonitorCheck

Posted: Sun Feb 12, 2012 4:33 am
by richi
The addon says it is a WARNING_MESSAGE event