Jump to content

>C< Prayer potion drinker


CasDeBlanco

Recommended Posts

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:

Link to comment
Share on other sites

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! :)

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

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! 

Link to comment
Share on other sites

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 :)

Link to comment
Share on other sites

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

3 hours ago, Castro_ said:

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 :)

Will try!

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