How can i manage a yes/no dialog

Runes of Magic/Radiant Arcana (http://www.runesofmagic.com)
Post Reply
Message
Author
Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

How can i manage a yes/no dialog

#1 Post by Rickster »

When talking to Sturobold and asking him to tranport me to somewhere, he asks me whether or not i realy want to spend some gold for getting to my destination and presents me a dialog where i can chose yes or no.

Easy thing when using my mouse, but how can i manage this dialog with the bot?

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

Re: How can i manage a yes/no dialog

#2 Post by rock5 »

I don't know who Sturobold is but the game addon "Streamline" can auto pay some things.

If not, you probably need to deal with static popups. You probably need the following commands.
StaticPopup_Visible
StaticPopup_OnClick
The StaticPopup_Visible shows a bit of code you might need to make use of. Of course it would have to be converted to rombot code with RoMScripts and you might need to know the name of the popup frame.

Or you might be able to just use StaticPopup_OnClick.
  • 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
Alkaiser
Posts: 222
Joined: Sat Sep 25, 2010 2:03 pm

Re: How can i manage a yes/no dialog

#3 Post by Alkaiser »

Try this:

Code: Select all

RoMScript("OnClick_RequestDialogAccept()")
User avatar
lisa
Posts: 8332
Joined: Tue Nov 09, 2010 11:46 pm
Location: Australia

Re: How can i manage a yes/no dialog

#4 Post by lisa »

it's for snoop, I'd say that is another language name for Snoop.
Remember no matter you do in life to always have a little fun while you are at it ;)

wiki here http://www.solarstrike.net/wiki/index.php?title=Manual
User avatar
rock5
Posts: 12173
Joined: Tue Jan 05, 2010 3:30 am
Location: Australia

Re: How can i manage a yes/no dialog

#5 Post by rock5 »

lisa wrote:it's for snoop, I'd say that is another language name for Snoop.
In that case Streamline should work.
  • 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
Alkaiser
Posts: 222
Joined: Sat Sep 25, 2010 2:03 pm

Re: How can i manage a yes/no dialog

#6 Post by Alkaiser »

rock5 wrote:
lisa wrote:it's for snoop, I'd say that is another language name for Snoop.
In that case Streamline should work.
The function I posted above works for Snoop.
Rickster
Posts: 291
Joined: Sun Oct 24, 2010 4:23 pm

Re: How can i manage a yes/no dialog

#7 Post by Rickster »

Yes, I am talking about this little dog, taking care of the transport gates.

I´ll try Alkaisers solution.
And maybe, coz I think its interessting, I will give a try to the two above mentioned functions. I had a quick look at them and their short description, but I could not get an idea of how to use them correct. I will check that out.

Thanx so far.
Post Reply