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

Kebbit Hunter script (Help with ConditionalSleeps)

Featured Replies

Having trouble making a ConditionalSleep for my catchKebbit method and retrieveKebbit method. Any suggestions? Just got standard sleep(randoms) for now which works but wouldn't wanna run to long this way. Perhaps for such a standard script it wont really matter though..? Also for dropping method is there a way to drop items from top to bottom instead of always left to right? Or just randomize it better? Also realizing the bot will go for another players falcon as well so will only work in an empty world as it sits ?

Code:

private Area huntingArea = new Area(2365, 3596, 2393, 3575);


    private void catchKebbit() throws InterruptedException {
        NPC spottedKebbit = getNpcs().closest("Spotted kebbit");
        NPC falcon = getNpcs().closest("Gyr Falcon");

        if (!myPlayer().isAnimating() && !myPlayer().isMoving() && getEquipment().isWearingItemThatContains(EquipmentSlot.WEAPON, "Falconer's glove") && !getInventory().isFull() && spottedKebbit != null && falcon == null) {
            log("Catching Kebbit...");
            spottedKebbit.interact("Catch");
            sleep(random(2500, 3000));
        }
    }

     private void retrieveKebbit() throws InterruptedException {
         NPC caughtKebbit = getNpcs().closest("Gyr Falcon");

         if (!myPlayer().isAnimating() && !myPlayer().isMoving() && !getInventory().isFull() && caughtKebbit != null) {
             log("Retrieving Kebbit...");
             caughtKebbit.interact("Retrieve");
             sleep(random(2500, 3000));
         }
     }


    private void dropAll() {
        if(getInventory().isFull() && !myPlayer().isAnimating() && !myPlayer().isMoving()) {
            log("Inventory FULL.. dropping fur's and bones...");
            getInventory().dropAllExcept("Dramen staff","Varrock teleport","Stamina potion(4)","Coins");
        }
    }


    @Override
    public int onLoop() throws InterruptedException {
        if(huntingArea.contains(myPlayer())) {
            catchKebbit();
            retrieveKebbit();
            dropAll();
        }else{
            stop();
        }
        return 1000;
    }
}

Edited by Imthabawse

I'm guessing this is hunting - don't really know much about it.

I'm not sure the difference between catching and receiving a kebbit. But in any case, you want to create a conditional sleep such that you sleep until you're inventory contains x + 1 kebbits. So you would need a variable representing the previous count, X, and sleep until getCurrentKebbitCount() == X + 1.

  • Author
9 hours ago, dreameo said:

I'm guessing this is hunting - don't really know much about it.

I'm not sure the difference between catching and receiving a kebbit. But in any case, you want to create a conditional sleep such that you sleep until you're inventory contains x + 1 kebbits. So you would need a variable representing the previous count, X, and sleep until getCurrentKebbitCount() == X + 1.

When you "Retrieve" a Kebbit in this case Spotted Kebbit you get a bone and a fur in your inventory so you got me thinking on the right path just gotta figure out how to write it. 

 

Something along the lines of sleep until getInventory.contains +1 bones +1furs 

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.