Jump to content

>C< Prayer potion drinker


Recommended Posts

Posted
1 hour ago, Fibonacci said:

nice work!

Thank you :)

1 hour ago, scriptersteve said:

Also allows for occasional double drinking especially with higher prayer levels which I think is really nice

 

Will be a nice feature tbf, will most likely add it soon

49 minutes ago, GeneralMayor said:

very quick delivery lol

Thank you haha

47 minutes ago, jonny1179 said:

Your logic for selecting which pot to drink could be simplified:


Optional<Item> prayerPotion = Arrays.stream(getInventory().getItems())
	.filter(item -> item != null && item.getName().startsWith("Prayer potion"))
	.min(Comparator.comparing(Item::getName));

if (prayerPotion.isPresent()) {
    Item pot = prayerPotion.get();
}

 

Thank you will look into changing it this soon!:boge:

Posted
8 minutes ago, gearing said:

haha nice! care to make a cannon reloading script as well?:P

I may do when i get some more time ;)

3 minutes ago, Attaboy said:

Thanks alot man! I didn't expect that someone would actually make something like this. This script may be usefull for alot of people. I have tested it for an hour and It worked great!

No worries and awesome man! Let me know if you find anything wrong with it! :)

Posted

Nice work - Just a simple suggestion however in the future instead of doing this;

			btnStart.addActionListener(new ActionListener() {
				public void actionPerformed(ActionEvent arg0) {
					if(chckbxDrinkSuperRestores.isSelected()) {
						drink_restores = true;
					}		
					drink_at = Integer.parseInt(textField.getText());
					gui_COMPLETE = true;
				}
			});

You can simplify this into

			btnStart.addActionListener(e -> {
				if (chckbxDrinkSuperRestores.isSelected()) 
					drink_restores = true;
				drink_at = Integer.parseInt(textField.getText());
				gui_COMPLETE = true;
			});

 

Posted

I have been using it for a few hours yesterday and Super Restores are not working unfortunatly! Also, instead of drinking a pot at a certain prayer level maybe you can make some sort of randomizer so it doesn't always drink at the same prayer level. But other than super restore issue, the bot is working fine! 

Posted
21 minutes ago, Attaboy said:

I have been using it for a few hours yesterday and Super Restores are not working unfortunatly! Also, instead of drinking a pot at a certain prayer level maybe you can make some sort of randomizer so it doesn't always drink at the same prayer level. But other than super restore issue, the bot is working fine! 

Just tested, super restores seem to be working for me?

Try restarting the client or deleting the .jar from your local scripts folder and re-downloading and adding it back.

Also I will add some randomisation soon as I'm currently working on some other scripts at the moment :)

Posted (edited)
1 hour ago, Attaboy said:

I have been using it for a few hours yesterday and Super Restores are not working unfortunatly! Also, instead of drinking a pot at a certain prayer level maybe you can make some sort of randomizer so it doesn't always drink at the same prayer level. But other than super restore issue, the bot is working fine! 

not hard to edit it yourself and add that.

it is infact 3 lines of code

Edited by scriptersteve

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