Problem with AcceptQuestByName()

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Problem with AcceptQuestByName()

#1 Post by gloover » Tue Oct 09, 2012 2:45 pm

Hello again,

ist there a difference on how to use AcceptQuestByName() to accept only the daily (blue) quests and not the red?
If there are 2 quests same named (blue and red) - this function allways accept the red one.

How can i select only the daily quest?

thx in advance!

User avatar
Ego95
Posts: 564
Joined: Tue Feb 28, 2012 12:38 pm
Contact:

Re: Problem with AcceptQuestByName()

#2 Post by Ego95 » Tue Oct 09, 2012 3:46 pm

Have a look here: http://solarstrike.net/phpBB3/viewtopic.php?f=30&t=4071
You can use for example

Code: Select all

AcceptQuestByName("questname", "daily")
But you can use the id aswell

Code: Select all

AcceptQuestByName(YourQuestID)

User avatar
gloover
Posts: 304
Joined: Wed Jul 07, 2010 4:31 am

Re: Problem with AcceptQuestByName()

#3 Post by gloover » Wed Oct 10, 2012 1:10 am

Oh, thx - have not seen this changelog.

I allways prefer to use ID's instead of names, but at this time the romdatabase is just updated to v.5.0.0 - so all crysalia quests are not yet included.

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Problem with AcceptQuestByName()

#4 Post by Cindy » Wed Oct 10, 2012 4:41 pm

My Veiled Encampment script fails on the accept quest every couple quests (incidentally every other round i also get the Circle sequence error)


/userfunction_QuestByName.lua:194 bad argument #1 to 'gsub' (string expected, got nil)

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

Re: Problem with AcceptQuestByName()

#5 Post by rock5 » Wed Oct 10, 2012 4:56 pm

The QuestByName functions are part of the bot now. Try removing the QuestByName userfunction and see if it works better.
  • 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

Cindy
Posts: 237
Joined: Fri Sep 28, 2012 4:23 pm

Re: Problem with AcceptQuestByName()

#6 Post by Cindy » Fri Oct 12, 2012 4:54 pm

Works like a charm, thanks rock.

Post Reply

Who is online

Users browsing this forum: No registered users and 12 guests