Jump to content

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


Recommended Posts

Posted (edited)

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
  • Like 5
Posted
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.

Posted (edited)
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
Posted
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);
}

 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...