Dockid 9 Share Posted May 11, 2020 Hi, I am currently making a Catherby Fisher but I've ran into a problem that occurs when I fish the final fish to fill the inventory. I get the dialogue "Inventory is full" and my script clicks continue, but after this occurs my check (if inv is full = go to bank) stops working. If i restart the script from this position it will immediately start working again and bank the fish. Any help would be much appreciated Link to comment Share on other sites More sharing options...
Dockid 9 Author Share Posted May 11, 2020 Title spelling mistake Dialogue* Link to comment Share on other sites More sharing options...
yetanotherbot 4 Share Posted May 11, 2020 You'll need to post more for anyone to help. Can you post relevant code? Link to comment Share on other sites More sharing options...
Dockid 9 Author Share Posted May 11, 2020 3 hours ago, Dockid said: Hi, I am currently making a Catherby Fisher but I've ran into a problem that occurs when I fish the final fish to fill the inventory. I get the dialogue "Inventory is full" and my script clicks continue, but after this occurs my check (if inv is full = go to bank) stops working. If i restart the script from this position it will immediately start working again and bank the fish. Any help would be much appreciated private void handleDialogue() { sleep(Calculations.random(1500, 3500)); c.getDialogues().clickContinue(); sleep(Calculations.random(1050, 2300)); if (c.getDialogues().inDialogue()) { c.getDialogues().clickContinue(); } } This is called when the last fish is caught and the dialogue 'Inventory is full' is shown. I have another method that walks the player to the bank once the inventory is full, this method doesnt work after the dialogue is handled, yet if i stop and restart the script when the dialogue is shown the bot will handle the dialogue and then continue to bank and it will work Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted May 11, 2020 if(getDialogues().canContinue()) getDialogues().spaceToContinue(); Link to comment Share on other sites More sharing options...
Dockid 9 Author Share Posted May 11, 2020 In short,.After i run the dialogue handler everything in the script stops Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted May 11, 2020 6 minutes ago, Dockid said: In short,.After i run the dialogue handler everything in the script stops Have you checked the debug log for any errors? Link to comment Share on other sites More sharing options...
Dockid 9 Author Share Posted May 11, 2020 [ERROR]22:14:01: Exception has occurred while running! Please report error to developer if problem persists: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(Unknown Source) at java.util.ArrayList$Itr.next(Unknown Source) at org.dreambot.api.script.loader.LocalLoader.resetLoader(LocalLoader.java:42) at org.dreambot.api.script.ScriptManager.stop(ScriptManager.java:190) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:282) at java.lang.Thread.run(Unknown Source) This is the error code but I honestly cant understand what its saying is wrong Link to comment Share on other sites More sharing options...
NovaGTX 106 Share Posted May 11, 2020 Just now, Dockid said: [ERROR]22:14:01: Exception has occurred while running! Please report error to developer if problem persists: java.util.ConcurrentModificationException at java.util.ArrayList$Itr.checkForComodification(Unknown Source) at java.util.ArrayList$Itr.next(Unknown Source) at org.dreambot.api.script.loader.LocalLoader.resetLoader(LocalLoader.java:42) at org.dreambot.api.script.ScriptManager.stop(ScriptManager.java:190) at org.dreambot.api.script.AbstractScript.run(AbstractScript.java:282) at java.lang.Thread.run(Unknown Source) This is the error code but I honestly cant understand what its saying is wrong If you read it, it tells you "ConcurrentModificationException" At (LocalLoader.java:42) Link to comment Share on other sites More sharing options...
Dockid 9 Author Share Posted May 11, 2020 3 minutes ago, NovaGTX said: If you read it, it tells you "ConcurrentModificationException" At (LocalLoader.java:42) if (c.getLocalPlayer().getAnimation() == -1 && !c.getInventory().isFull()) { fishingSpot.interact("Cage"); walkSleep(); }else if (c.getDialogues().inDialogue()) { c.getDialogues().spaceToContinue(); } When i remove the else if for handling the dialogue box the script will run perfectly, is there something wrong with how I am dealing with the "Inventory is full" dialogue? Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.