Page 1 of 1

Problem with AcceptQuestByName()

Posted: Tue Oct 09, 2012 2:45 pm
by gloover
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!

Re: Problem with AcceptQuestByName()

Posted: Tue Oct 09, 2012 3:46 pm
by Ego95
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)

Re: Problem with AcceptQuestByName()

Posted: Wed Oct 10, 2012 1:10 am
by gloover
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.

Re: Problem with AcceptQuestByName()

Posted: Wed Oct 10, 2012 4:41 pm
by Cindy
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)

Re: Problem with AcceptQuestByName()

Posted: Wed Oct 10, 2012 4:56 pm
by rock5
The QuestByName functions are part of the bot now. Try removing the QuestByName userfunction and see if it works better.

Re: Problem with AcceptQuestByName()

Posted: Fri Oct 12, 2012 4:54 pm
by Cindy
Works like a charm, thanks rock.