737 Changelog - Quests IDs change

For changelogs and discussion related to a specific revision.
Post Reply
Message
Author
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

737 Changelog - Quests IDs change

#1 Post by rock5 » Tue Aug 21, 2012 6:46 am

Changes include;

- getQuestStatus(nameorid) now accepts ids.

- QuestByName functions now accept Ids and an extra argument if you want to specify the quest group, "normal", "daily" or "public".
  • Examples:

    If you want to accept/complete all normal quests only

    Code: Select all

    AcceptAllQuests("normal")
    CompleteAllQuests("normal")
    If you want to accept the daily quest "Extinguish More Flames" but not the public quest by the same name

    Code: Select all

    AcceptQuestByName(425186)
    • or

    Code: Select all

    AcceptQuestByName("Extinguish More Flames", "daily")
    To complete this quest you can use

    Code: Select all

    CompleteQuestByName(425186)
    • or

    Code: Select all

    CompleteQuestByName("Extinguish More Flames" ,nil, "daily")
    The 'nil' is there because the second argument for that function is the reward number. But if you don't have to specify a reward you can also use

    Code: Select all

    CompleteQuestByName("Extinguish More Flames","daily")
    because the function checks to see if the second argument is a reward option or quest group.
Note: This update requires you to update the ingamefunctions folder in your games addons folder.


I think I made these functions a lot more usable. Enjoy.
  • 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
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: 737 Changelog - Quests IDs change

#2 Post by Ego95 » Mon Aug 18, 2014 4:24 pm

Although this post is a bit older, I'd recommend to add something.

Today I made a daily script which will use a daily quest ticket, when 10 dailies are done, which accepts four dailies. At the end I am using CompleteAllQuests("daily"). It happened, that I got four completed dailies, but just two dailies left to turn in. Now I needed to complete every single daily and then check the daily count.

I'd recommend to check, how many dailies are left before turning in. Actually it doesn't stop trying to complete the quests :)

I just saw it was maybe a bit stupid to post it here. Now the revisions are not in the right order. Maybe Admin can do something about this later, when nothing will be posted here anymore.

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

Re: 737 Changelog - Quests IDs change

#3 Post by rock5 » Tue Aug 19, 2014 5:57 am

Your post is about a bug with a function, it's not really about the changelog which is out of date anyway, so you should probably have just started a new topic. It doesn't matter that the topics are out if order.

I made a quick 1 line change that should fix it. It basically just skips completing daily quests if you have reached your daily limit. Try it out and let me know.
Attachments
functions.lua
(89.66 KiB) Downloaded 260 times
  • 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
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: 737 Changelog - Quests IDs change

#4 Post by Ego95 » Tue Aug 19, 2014 8:42 am

Yeah, that solved it :) Thanks. Just "Daily_count" was a nil value so I added a RoMScript to that. I can't attach files in this part of the forum. Just changed line 2014 to

Code: Select all

(qgroup ~= 2 or RoMScript("Daily_count()") <10) then -- And not out of dailies.

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

Re: 737 Changelog - Quests IDs change

#5 Post by rock5 » Tue Aug 19, 2014 9:12 am

Oh yeah. Sorry.
  • 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 1 guest