-
richi
- Posts: 8
- Joined: Tue Jan 24, 2012 1:30 pm
#1
Post
by richi » Sat Feb 11, 2012 6:44 am
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
?
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 » Sat Feb 11, 2012 7:51 am
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.
- Please consider making a small donation to me to support my continued contributions to the bot and this forum. Thank you. Donate
- I check all posts before reading PMs. So if you want a fast reply, don't PM me but post a topic instead. PM me for private or personal topics only.
- How to: copy and paste in micromacro
________________________
Quote:
- “They say hard work never hurt anybody, but I figure, why take the chance.”
-
richi
- Posts: 8
- Joined: Tue Jan 24, 2012 1:30 pm
#3
Post
by richi » Sat Feb 11, 2012 8:01 am
I want to prove the Zone Chat in Tergothen Bay on "Regional event now restarting" and it happens nothing.
-
kkulesza
- Posts: 150
- Joined: Fri May 27, 2011 9:00 pm
- Location: Poland
#4
Post
by kkulesza » Sat Feb 11, 2012 4:32 pm
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.
-
richi
- Posts: 8
- Joined: Tue Jan 24, 2012 1:30 pm
#5
Post
by richi » Sun Feb 12, 2012 4:33 am
The addon says it is a WARNING_MESSAGE event
Who is online
Users browsing this forum: No registered users and 4 guests