getQuestStatus() for public quests?

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
botique
Posts: 40
Joined: Fri Oct 21, 2011 12:25 pm

getQuestStatus() for public quests?

#1 Post by botique » Fri Feb 15, 2013 9:24 pm

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!

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: getQuestStatus() for public quests?

#2 Post by rock5 » Fri Feb 15, 2013 11:16 pm

You can accept and complete public quests like this.

Code: Select all

AcceptquestByName("questname", "public")
CompleteQuestByName("questname","public")
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.
  • 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

botique
Posts: 40
Joined: Fri Oct 21, 2011 12:25 pm

Re: getQuestStatus() for public quests?

#3 Post by botique » Fri Feb 15, 2013 11:47 pm

rock5 wrote:You can accept and complete public quests like this.

Code: Select all

AcceptquestByName("questname", "public")
CompleteQuestByName("questname","public")
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.

botique
Posts: 40
Joined: Fri Oct 21, 2011 12:25 pm

Re: getQuestStatus() for public quests?

#4 Post by botique » Sat Feb 16, 2013 12:06 am

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.
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.

User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: getQuestStatus() for public quests?

#5 Post by rock5 » Sat Feb 16, 2013 12:27 am

botique wrote:Unfortunately that won't work for quests that are picked up by using (right click) an item.
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.

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

Post Reply

Who is online

Users browsing this forum: No registered users and 7 guests