Ragnar Lothbrok Posted October 10, 2018 Posted October 10, 2018 (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: 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. Sourcehttps://github.com/Ragnar-Lothbrok-OSBot/RagnarsGiantMole DownloadRagnarsGiantMole.jar Edited October 22, 2018 by Ragnar Lothbrok 5
Czar Posted October 10, 2018 Posted October 10, 2018 Good job on the new script. Nice to see new script ideas, haven't thought of a giant mole script 1
nasty Posted October 10, 2018 Posted October 10, 2018 this is wicked, Shame I don't have an account to test
Ragnar Lothbrok Posted October 10, 2018 Author Posted October 10, 2018 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 Thanks! be good to know what you thought of the code
Veni Posted October 10, 2018 Posted October 10, 2018 Nice! Good release, thanks for the contribution.
biesje Posted October 10, 2018 Posted October 10, 2018 damn this dude is shitting out great scripts as if its christmass ! congrats on the release!
luck or skill Posted October 18, 2018 Posted October 18, 2018 (edited) @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 October 18, 2018 by luck or skill
Ragnar Lothbrok Posted October 18, 2018 Author Posted October 18, 2018 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.
scriptersteve Posted October 18, 2018 Posted October 18, 2018 Looks very good - excited to take it for a spin How does it work without locator just a question?
Ragnar Lothbrok Posted October 18, 2018 Author Posted October 18, 2018 (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 October 18, 2018 by Ragnar Lothbrok
Ragnar Lothbrok Posted October 18, 2018 Author Posted October 18, 2018 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); }
Titan Rs Posted October 20, 2018 Posted October 20, 2018 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 1
PKDealer Posted October 20, 2018 Posted October 20, 2018 man this looks sick, kind of a premium script, what combat lvl u suggest to get some decent gp/hour?
scriptersteve Posted October 20, 2018 Posted October 20, 2018 Just an fyi, it breaks at the moment if there is an adventurer inside the cave on viewing just constantly hops worlds