Jump to content
aeikonic

Dialog section of my script slows to a crawl over time but fixes if I pause/unpause

Recommended Posts

public int onLoop() throws InterruptedException {
    if(getDialogues().inDialogue()) {
        if(getDialogues().isPendingContinuation()) {
            getDialogues().clickContinue();
        } else if(getDialogues().isPendingOption()) {
            getDialogues().selectOption(1);
        }
    }

    return random(1000, 1500);

 

I cut out the part where it talks to the NPC, but this is the gist of it. After like 5 minutes the dialog click through slows down to doing the interaction like once every 5-10 seconds. If I pause and unpause the script it goes back to regular speed. Just trying to figure out why it slows down so much. Is there something wrong with this?

Edited by aeikonic
Link to post
Share on other sites

Your onLoop return value is quite high, have you considered a more responsive value, e.g. ~200?

As for your issue, I can't see any immediate issue with your code, so the issue may be stemming from a different area in your code. Do you have any errors logged in your console?

-Apa

Link to post
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.

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...