Jump to content

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


Ragnar Lothbrok

Recommended Posts

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
Link to comment
Share on other sites

@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
Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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
Link to comment
Share on other sites

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);
}

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

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