Rock5's QuestLog Class

Additional botting resources. Addons may be either for the game itself or for the RoM bot.
Forum rules
Only post additional bot resources here. Please do not ask unrelated questions.
Message
Author
Buster99
Posts: 69
Joined: Fri Nov 25, 2011 9:27 am

Re: Rock5's QuestLog Class

#41 Post by Buster99 »

I will just keep checking back here for an update.

Thanks much and Happy New Year. :)
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's QuestLog Class

#42 Post by rock5 »

I just retested the 0.5 version of the userfunction. I thought it wasn't working but in fact it is (this is with 744/RC3 and patch 5.0.6). Now I think you are reporting a different issue.

If I understand correctly, with particular quests it doesn't report the quest complete when it actually is. Could you give me an example quest?
  • 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
Buster99
Posts: 69
Joined: Fri Nov 25, 2011 9:27 am

Re: Rock5's QuestLog Class

#43 Post by Buster99 »

Rock, the problem was on my end. It is working fine. TY
Jandrana
Posts: 187
Joined: Thu Jul 05, 2012 5:53 am

Re: Rock5's QuestLog Class

#44 Post by Jandrana »

I'm using a modified version of the "Veiled Encampment" script to do my dailies in Chrysalia. It happens sometimes that using the "Magic Circle Charge Rune" does not count for quest completion. I already adjusted my waypoints, but the problem is still there.

Now I'm looking for a way to determine, if using a charge rune did count to repeat that failed waypoint.

I thought the QuestLog could provide this information.

What I currently see is:
getKillCount(goal) - presumably for killing mobs
getItemCount(goal) - presumably for collecting items

But this quest does not fit into these categories. Is it possible to use QuestLog for this purpose? If so, any advice how to do it is appreciated.
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's QuestLog Class

#45 Post by rock5 »

That's mainly what those functions are for but you do get quests that have "tasks" saved in the killcount or itemcount memory location so you really need to see the data to know which function to use.

To see what goals a quest has, accept the quest then start the commandline file and type the following.

Code: Select all

table.print(questlog:getQuest(nameorid))
where 'nameorid' is the name or id of the quest.

You should then see which one your goals are, kill goals or item goals.
  • 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: Rock5's QuestLog Class

#46 Post by noobbotter »

Hey Rock,

I didn't see anything in this class but was wondering if there is already a way, or if you would be able to figure out a way, where when you manually accept a quest, the quest name could be either logged or put into a variable? I didn't see anything in the QuestLog Class that would do that.

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

Re: Rock5's QuestLog Class

#47 Post by rock5 »

Manually? You would have to monitor the event that happens when you accept a quest. You could do that with the bot using the EventMonitor functions. The event to monitor is probably ADDNEW_QUESTBOOK http://runesofmagic.gamepedia.com/Event ... _QUESTBOOK.
  • 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: Rock5's QuestLog Class

#48 Post by noobbotter »

Excellent. I'll look into that and see what I can figure out. thanks.
chesterfield
Posts: 34
Joined: Thu Feb 16, 2012 4:03 am

Re: Rock5's QuestLog Class

#49 Post by chesterfield »

Xaviera with Butterfly not in my addon-list :)
Why
Braziliano
Posts: 82
Joined: Fri Apr 19, 2013 2:36 pm

Re: Rock5's QuestLog Class

#50 Post by Braziliano »

hey rock is there an option '' kill quest '' (abandon quest) ??
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's QuestLog Class

#51 Post by rock5 »

Yes, it's part of the bot, not this addon.

Code: Select all

CancelQuest(nameorid)
  • 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
Braziliano
Posts: 82
Joined: Fri Apr 19, 2013 2:36 pm

Re: Rock5's QuestLog Class

#52 Post by Braziliano »

ah k , thanks
User avatar
rido_knight
Posts: 102
Joined: Wed May 29, 2013 6:50 am
Location: Turkey

Re: Rock5's QuestLog Class

#53 Post by rido_knight »

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

Re: Rock5's QuestLog Class

#54 Post by rock5 »

Updated to version 0.06 to match changes to getQuestStatus in latest revision. Also added base function to get base quest info for quests you don't have.
  • 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
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Rock5's QuestLog Class

#55 Post by botje »

just wanted to say it seems it doesnt see a completed quest, i do the trade relations quest in boulderwind village.

but it always complains about not ready to complete quest, while it actually does complete it O.o
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's QuestLog Class

#56 Post by rock5 »

I think I noticed something similar recently. I think it was because of a auto complete by Dailynotes. Are you using an auto complete addon? If so then it's working as intended. The bot targets the npc, it auto completes and then CompleteQuestByName sees that the quest doesn't need to complete. BTW I think this is a QuestByName question not a QuestLog Class question.
  • 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
User avatar
botje
Posts: 656
Joined: Wed Oct 27, 2010 7:17 am

Re: Rock5's QuestLog Class

#57 Post by botje »

aaah, that could be it. ill check that.

i didnt find a thread to post in so i thought this would be good enough ^^
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's QuestLog Class

#58 Post by rock5 »

If you can't find a relevant enough topic to post in, don't be afraid to start your own. :)
  • 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: Rock5's QuestLog Class

#59 Post by noobbotter »

Quick question. I've never used this so I'm wondering exactly how to use it. with quest:getItemCount(goal), if you have to do the same task multiple times, they would all be under the samegoal number? like if a quest had just one task but you have to do it 3 times, then I would use quest:getItemCount(1) and that would tell me how many times I've compelted that task? And if it resulted in a 3, (in this case) then the quest:isComplete() would be true? Is that right?
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: Rock5's QuestLog Class

#60 Post by rock5 »

Yes if there is only 1 task that has to be done a number of times then quest:getItemCount(1) or quest:getKillCount(1) will tell you how many you have done so far. Note: there are the 2 goal counting functions listed above. You'll have to figure out which one applies to the particular quest you are doing. It's not always the obvious one.
  • 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