aeikonic Posted March 27, 2021 Share Posted March 27, 2021 (edited) 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 March 27, 2021 by aeikonic Quote Link to comment Share on other sites More sharing options...
FuryShark Posted March 27, 2021 Share Posted March 27, 2021 probably another part of your script/something else Quote Link to comment Share on other sites More sharing options...
Apaec Posted March 27, 2021 Share Posted March 27, 2021 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 Quote Link to comment Share on other sites More sharing options...