how do you accept a quest in a script?

pedenspeed

Active Member
I have read through the wiki, the notes posted in feb. 12th, and searched the forums for accepting a quest from a NPC. I am pretty sure you use the CurrentDisplayedQuest datatype, but I cant seem to get the syntax correct. Anyone have any ideas on how this would be done? I am trying to write a script for repeatable quests. Thanks in advance.
 

bohicaseti

Active Member
Not sure if this is close, seems like the wiki is short on examples, but maybe something similar to this?

${Journal[${CurrentDisplayedQuest}].ToQuestJournalEntry:Accept[Quest,1]}

That is a total guess and may end up proving that reading forums and drinking don't mix. Good luck =)
 

pedenspeed

Active Member
Well I appreciate the help, that one didn't work either. I tried a few variations of that as well and none seemed to work. I will keep trying until I get it or someone with more knowledge than me (shouldnt be to hard to find someone) can help me out.
 

spudman

Active Member
In looking at the wiki and update notes, it looks a little confusing. When I initially look at it, currentdisplayedquest seems to be related to items in your quest journal, but then again, not sure why there'd be an accept method if the item is already in your journal. The update notes say this is how you access a quest in an npc dialog as well, so I'll try and play with it tonight and see if I can make some more sense of it and update the wiki.

however, there is no accept method to the questjournalentry and you don't want wrap your command in ${ } tags, since your executing a method, not getting a value, so I'd think it would be more like...

Code:
Journal[Quest].CurrentDisplayed:Accept
 

spudman

Active Member
Verified tonight on a quest (I typed these commands into the console, so in a script you'd have to add the proper wait's, etc.
Code:
Pawn[<Name>]:Target
Pawn[<Name>]:DoubleClick
Dialog[General,2]:Select
Journal[Quest].CurrentDisplayed:Accept
Use ${Dialog[General].ResponseCount} and ${Dialog[General,#].Text} to get the proper one you are wanting. If there are additional steps you must 'answer' before you get to the 'accept' part of the quest, you may have to choose other Dialog's along the way, but for a simple choose the tag line and then accept the quest, this worked.

I tested on Kaneb Adon and the 'Fresh Cloth' quest in Ahgram crafting area. This should get you going.
 

pedenspeed

Active Member
thank you, I will try it out here in a little bit, been stumped on this for sometime now but this should get me going again.
 
Top Bottom