Consider the case of a public quest and a daily quest with the same name.
Is it possible to use getQuestStatus() to check for the status of the public quest?
Alternatively, how can I find the id of the public quest?
Thanks!
getQuestStatus() for public quests?
Re: getQuestStatus() for public quests?
You can accept and complete public quests like this.
Then assuming you only have the public quest in your log then I think getQuestStatus will return the status of that.
Or you could use my questlog class userfunction. It has a modified version of getQuestStatus that I think can work by id. To get quest ids I would use ItemPreview game addon.
Code: Select all
AcceptquestByName("questname", "public")
CompleteQuestByName("questname","public")
Or you could use my questlog class userfunction. It has a modified version of getQuestStatus that I think can work by id. To get quest ids I would use ItemPreview game addon.
- 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
Re: getQuestStatus() for public quests?
Unfortunately that won't work for quests that are picked up by using (right click) an item. (for example, the quest "Last Luck" that one picks up by using an arrowhead. On first use, the item offers the daily quest, and on the next use (assuming one did not turn in the daily version) the public quest is offered.rock5 wrote:You can accept and complete public quests like this.Code: Select all
AcceptquestByName("questname", "public") CompleteQuestByName("questname","public")
Re: getQuestStatus() for public quests?
Many thanks, Rock5, that's exactly what I wanted. It seems to work fine with quest IDs, which I obtained from the database of the DailyNotes addon.rock5 wrote:...
Or you could use my questlog class userfunction. It has a modified version of getQuestStatus that I think can work by id. To get quest ids I would use ItemPreview game addon.
Re: getQuestStatus() for public quests?
Obviously those functions are for when talking to an npc. Border quests, as they are called, are accepted differently. But CompleteQuestByName("questname","public") can still be used when turning it in.botique wrote:Unfortunately that won't work for quests that are picked up by using (right click) an item.
As to which quest you get, can't you drop the daily quest after accepting the public one? Does it keep starting with the daily quest when using the item? Actually I have some arrow head with one of my characters. I'll have a look at them.
For me it gives the public event first. But I understand, you would have to accept both all the time so checking the status of the right quest would be helpful. In that case the version of getquestStatus in the questlog userfuntcion is your solution.
I always meant to update the getQuestStatus function in the bot. I think I'll work on that now.
Edit: Forget that. I would have to reproduce too much of the questlog code to make a new getQuestStatus that uses that method.
- 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
Who is online
Users browsing this forum: No registered users and 7 guests