-
randomuser01
- Posts: 29
- Joined: Mon Jul 19, 2010 7:32 pm
#1
Post
by randomuser01 » Tue Jul 27, 2010 7:46 pm
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
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#2
Post
by rock5 » Wed Jul 28, 2010 12:09 am
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()");
- 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.”
-
randomuser01
- Posts: 29
- Joined: Mon Jul 19, 2010 7:32 pm
#3
Post
by randomuser01 » Wed Jul 28, 2010 6:49 pm
Isn't working.
Gives error:
Code: Select all
[string "..."]:24: attempt to call global 'OnClick_QuestListButton' <a nil value>
-
rock5
- Posts: 12173
- Joined: Tue Jan 05, 2010 3:30 am
- Location: Australia
#4
Post
by rock5 » Wed Jul 28, 2010 11:08 pm
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()");
- 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.”
-
randomuser01
- Posts: 29
- Joined: Mon Jul 19, 2010 7:32 pm
#5
Post
by randomuser01 » Thu Jul 29, 2010 10:55 pm
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.
Who is online
Users browsing this forum: Bing [Bot] and 1 guest