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.

Ragnars Giant Mole -「Source Code」「Dharok's Only」

Featured Replies

Ragnars Giant Mole

Full source is on Github - Link below.
Feel free to fork the repository and make any changes you wish to customize this script to suit your individual needs

Info

Current Version:
v1.0

Requirments

Rock Cake
Super Combat Potions(4)
Prayer Potions(4)
Stamina Potions(4)
Spade
Bullseye Lantern
Tinderbox (The script will try to light your lantern if it's not light)
Quick prayers set-up with at least Protect from Melee.
House/Falador Teleports depending on what setting you use
Falador portal in your house if house teleports are used

How To Run The Script

Start the bot at Falador East Bank with the inventory set-up you wish to use and the equipment set-up you'd like to use. Here's the set-up I used while building this script:

yt9z1M5.png    5FvLYIy.png

Features

Bank when out of supplies or inventory is full and no items can be dropped
Drink from any pool that you have in your house
Hop if anyone else is in the mole lair
Enable/Disable Quick prayers
Drinks Prayer/Super Combat/Stamina potions
Drops Empty Vials
Maintains 1hp using the rock cake

Bug Reports

If you come across any bugs while using this script please report them here and I'll be sure to look into them in a timely manner.

Source
https://github.com/Ragnar-Lothbrok-OSBot/RagnarsGiantMole

Download
RagnarsGiantMole.jar

Edited by Ragnar Lothbrok

  • Author
10 minutes ago, Czar said:

Good job on the new script. Nice to see new script ideas, haven't thought of a giant mole script :D

Thanks! be good to know what you thought of the code :D

Nice! Good release, thanks for the contribution. :)

damn this dude is shitting out great scripts as if its christmass ! congrats on the release!

@Ragnar Lothbrok does this use fally shield 3? the locator i mean :) wud b cool

 

edit: got a rune med drop and it didnt pick it up??? does this loot stuff other than mole skin and claws?

also can u add like how many kills or anything that its done?

Edited by luck or skill

  • Author
5 hours ago, luck or skill said:

@Ragnar Lothbrok does this use fally shield 3? the locator i mean :) wud b cool

 

edit: got a rune med drop and it didnt pick it up??? does this loot stuff other than mole skin and claws?

also can u add like how many kills or anything that its done?

It only loots basic items atm - full source code is on git so you can easily go in and add items to the lootable items array.

I don't have an account with a fally shield but if you're happy to let me test using an account with one I can add this feature.

  • Author
6 minutes ago, scriptersteve said:

Looks very good - excited to take it for a spin

How does it work without locator just a question?

It will walk to a random position in the cave - if at anytime the mole is located it will stop the WalkingEvent. If the mole is not found another random position that is not within 25 tiles of the current position is generated. This will repeat until the mole is located.

Edited by Ragnar Lothbrok

  • Author
5 minutes ago, Ragnar Lothbrok said:

It will walk to a random position in the cave - if at anytime the mole is located it will stop the WalkingEvent. If the mole is not found another random position that is not within 25 tiles of the current position is generated. This will repeat until the mole is located.

Area area = null;
if (lastCheckedArea != null) {
    area = buildArea(moleLair.getRandomPosition(), 10);
} else {
    area = buildArea(moleLair.getRandomPosition(), 10);
    while (api.getMap().realDistance(area.getRandomPosition()) < 25) {
        area = buildArea(moleLair.getRandomPosition(), 10);
    }
}
if (!inArea(area)) {
    lastCheckedArea = area;
    settings.setCurrentAction("Walking to random position in mole lair");
    if (api.getConfigs().get(staminaConfig) < 1 && api.getSettings().getRunEnergy() <= 70) {
        settings.setCurrentAction("Drinking stamina potion");
        drinkPotion.drink("Stamina potion");
    }
    WalkingEvent walkingEvent = new WalkingEvent(area);
    walkingEvent.setMinDistanceThreshold(0);
    walkingEvent.setBreakCondition(new Condition() {
        @Override
        public boolean evaluate() {
            return findMole() != null;
        }
    });
    api.execute(walkingEvent);
}

 

Thanks a lot for this, looking at the code on github has given myself lots of ideas to make my code neater and better. Tysm for all ur contributions lately 

man this looks sick, kind of a premium script, what combat lvl u suggest to get some decent gp/hour? 

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.