Page 1 of 1
QuestID when detecting ADDNEW_QUESTBOOK event
Posted: Thu Mar 14, 2013 11:29 pm
by noobbotter
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
Posted: Fri Mar 15, 2013 12:33 am
by rock5
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")
Re: QuestID when detecting ADDNEW_QUESTBOOK event
Posted: Fri Mar 15, 2013 5:47 am
by noobbotter
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
Posted: Fri Mar 15, 2013 6:15 am
by rock5
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.