QuestID when detecting ADDNEW_QUESTBOOK event
-
noobbotter
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
QuestID when detecting ADDNEW_QUESTBOOK event
I've managed to successfully monitor for when I accept a new quest using the ADDNEW_QUESTBOOK event. The quest ID is confusing me... Here's what my print function printed for the returned value: "questid is: 1363231154.125" I can successfully transmit that number to my follow bot but i can't seem to use that number in an AcceptQuestByName() function. Is that number some other number that I need to use to retrieve the actual ID of the quest? Anyone know?
Re: QuestID when detecting ADDNEW_QUESTBOOK event
That's the time. The function EventMonitorCheck returns the time of the event, whether there is moretocome and then the event returned arguments. So you should be using
Code: Select all
time, moretocome, questid = EventMonitorCheck("monitor name")- 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.”
- Ronald Reagan
-
noobbotter
- Posts: 527
- Joined: Fri Aug 31, 2012 1:15 pm
Re: QuestID when detecting ADDNEW_QUESTBOOK event
so, does every event return the time, and moretocome in addition to the event returned arguments? Thanks Rock. I'll make some changes and I'm sure that will fix my issue.
Re: QuestID when detecting ADDNEW_QUESTBOOK event
EventMonitorCheck returns the time and moretocome and then the arguments from the event (whether filtered or not). The time and moretocome come from the function, not from the event. So the first 2 returned values of EventMonitorCheck will always be time and moretocome. Eg. ADDNEW_QUESTBOOK returns only 1 argument, the id of the quest. EventMonitorCheck returns the time, moretocome and that 1 argument.
- 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.”
- Ronald Reagan