Jump to content

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


aeikonic

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