Page 1 of 1
Can't figure out how to accept quest
Posted: Tue Jul 27, 2010 7:46 pm
by randomuser01
NPC is targeted, and dialog box opens.
2 options
- Quest: whatever
- Leave conversation
I found the command for
But that only works once the chat option Quest is selected. What is the command to click on the first dialog option?
TIA
Re: Can't figure out how to accept quest
Posted: Wed Jul 28, 2010 12:09 am
by rock5
http://www.theromwiki.com/API:OnClick_QuestListButton
To accept first quest;
Code: Select all
OnClick_QuestListButton(1, 1); yrest(1000)
sendMacro("AcceptQuest()");
To complete first quest;
Code: Select all
OnClick_QuestListButton(3, 1); yrest(1000)
sendMacro("CompleteQuest()");
Re: Can't figure out how to accept quest
Posted: Wed Jul 28, 2010 6:49 pm
by randomuser01
Isn't working.
Gives error:
Code: Select all
[string "..."]:24: attempt to call global 'OnClick_QuestListButton' <a nil value>
Re: Can't figure out how to accept quest
Posted: Wed Jul 28, 2010 11:08 pm
by rock5
randomuser01 wrote:Isn't working.
Gives error:
Code: Select all
[string "..."]:24: attempt to call global 'OnClick_QuestListButton' <a nil value>
Sorry;
Code: Select all
sendMacro("OnClick_QuestListButton(1, 1)"); yrest(1000)
sendMacro("AcceptQuest()");
Code: Select all
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(1000)
sendMacro("CompleteQuest()");
Re: Can't figure out how to accept quest
Posted: Thu Jul 29, 2010 10:55 pm
by randomuser01
rock5 wrote:randomuser01 wrote:Isn't working.
Gives error:
Code: Select all
[string "..."]:24: attempt to call global 'OnClick_QuestListButton' <a nil value>
Sorry;
Code: Select all
sendMacro("OnClick_QuestListButton(1, 1)"); yrest(1000)
sendMacro("AcceptQuest()");
Code: Select all
sendMacro("OnClick_QuestListButton(3, 1)"); yrest(1000)
sendMacro("CompleteQuest()");
Thanks rock5 works beautifully.