Jump to content

fix dialogue api


Deceiver

Recommended Posts

-dialogues.clickContinue() spam clicks the option and the next part of the dialogue is unable to load to due to spam click

 

i have ->

if (dialogues.indialogue()) {
dialogues.clickContinue();
}

but it spam clicks so much next interface wont load smile.png

 

Add in a sleep after: dialogues.clickContinue();

  • Like 1
Link to comment
Share on other sites

Your onLoop() will be executing anywhere from 5-10 times per second (depending on your return value of course, should typically have it at around 215ms), so you can imagine it would be clicking 5-10 times per second since it will just continue the loop after clicking continue.

A way to do this would be to see if there is a widget with the text "Please wait...", as this is the substitute when you click continue (right?), and if there is, you wait.

Another way is to sleep until the widget changes/disappears.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...