Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Is there something wrong with getQuests().isComplete()?

Featured Replies

It's like it wants to work sometimes and sometimes it just doesn't. I made a script that handles a few f2p quests for me but it randomly locks up in different areas on different accounts. If it gets locked up and I close the client and let the bot manager open it back up it begins to work again. Just wondering if its something with these functions or something that's broken in my code itself?

Edit. It seems to be locking up on completion of quests.

Edited by Alakazizam

  • Author

This is the basic loop I'm using. I have logs put in place for troubleshooting but when it locks up the only log that gets put out is my 'start' log

 

public int onLoop() throws InterruptedException {
        if(!myPlayer().isMoving() || !myPlayer().isAnimating()) {
            getTabs().open(Tab.INVENTORY);
            log("start");
            if (PreparedToQuest) {
                if (getDialogues().inDialogue()) {
                    log("Handling dialogue");
                    HandleDialogue();
                } else if (getQuests().isComplete(Quests.Quest.RUNE_MYSTERIES)) {
                    log("Wrapping it up");
                    Step06WrapItUp();
                } else if (getQuests().isComplete(Quests.Quest.WITCHS_POTION)) {
                    log("doing Final Stretch");
                    Step05FinalStretch();
                } else if (getQuests().isComplete(Quests.Quest.GOBLIN_DIPLOMACY)) {
                    log("doing Witches Potion");
                    Step04Witch();
                } else if (getQuests().isComplete(Quests.Quest.DORICS_QUEST)) {
                    log("doing Goblin Diplomacy");
                    Step03Goblin();
                } else if (!getQuests().isComplete(Quests.Quest.DORICS_QUEST) && inventory.contains("Iron ore")) {
                    log("doing Dorics Quest");
                    Step02Doric();
                }
            } else {
                log("preparing");
                Step01Prepare();
            }
        } else {
            log("flag 1");
        }
        return 602;

 

Edited by Alakazizam

  • Author
6 hours ago, Khaleesi said:

Happends sometimes when you complete a quest, I guess it doesn't refresh.
Just check the config value yourself and use that :)

It's kind of weird. That "Final Stretch" involves like 5 quests, it does steps in an efficient order instead of just doing the quest and moving to the next one. 
But if I finish Imp Catcher or Cooks Assistant or something, Witches Potion starts returning false and the whole section just stops doing its thing.

I had this working great a couple weeks ago I wonder what changed. Oh well, I'll figure out those configs and rewrite it lol

 

2 hours ago, Alakazizam said:

It's kind of weird. That "Final Stretch" involves like 5 quests, it does steps in an efficient order instead of just doing the quest and moving to the next one. 
But if I finish Imp Catcher or Cooks Assistant or something, Witches Potion starts returning false and the whole section just stops doing its thing.

I had this working great a couple weeks ago I wonder what changed. Oh well, I'll figure out those configs and rewrite it lol

 

It's hard to tell what's wrong right away for me at this point, but try this and let me know :)

  • Author
1 hour ago, Khaleesi said:

It's hard to tell what's wrong right away for me at this point, but try this and let me know :)

I wrote it up, just getting a few combat levels on a set of accounts to test it. I saw my last set through with the broken script by restarting each one manually between quests lol

13 hours ago, Alakazizam said:

It's kind of weird. That "Final Stretch" involves like 5 quests, it does steps in an efficient order instead of just doing the quest and moving to the next one. 
But if I finish Imp Catcher or Cooks Assistant or something, Witches Potion starts returning false and the whole section just stops doing its thing.

I had this working great a couple weeks ago I wonder what changed. Oh well, I'll figure out those configs and rewrite it lol

 

Cooks Assistant (29)
- End value = 2

Imp Catcher (160)
- End value = 2

Witch's Potion(67)
- End value = 3

I grabbed these in 2019 so not sure if they are still valid or not. Just grabbed them from an old github repo. If they are good then just dm me on discord ill send u the old github source

  • Author
26 minutes ago, Chris said:

Cooks Assistant (29)
- End value = 2

Imp Catcher (160)
- End value = 2

Witch's Potion(67)
- End value = 3

I grabbed these in 2019 so not sure if they are still valid or not. Just grabbed them from an old github repo. If they are good then just dm me on discord ill send u the old github source

Thanks. I managed to find all the ones I needed aside from Dorics in the forums. A couple people started putting them together but it doesn't look like it was completed. I may collect them all myself and get them in 1 post since I'm sort of working on that anyway,

 

Quote
11 hours ago, Khaleesi said:

It's hard to tell what's wrong right away for me at this point, but try this and let me know :)

The configs worked, script runs smooth now 👍

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.