Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

Sign up now!

pHerblore [Deleted]

Status
Not open for further replies.
Client Developer
Joined
Oct 12, 2015
Messages
3,758
Party submitted a new resource:

pHerblore - Make any potion, finished or unfinished!

pHerblore allows you to enter two components to combine, optimised for the Herblore skill.

Enter your settings in the same way as below:

PpuXFVt.png

Read more about this resource...
 
Last edited by a moderator:
Client Developer
Joined
Oct 12, 2015
Messages
3,758
Is there any way that making Super Combat potions could be added to this?

Should be fully customisable, make the (unf) then make the completed ones
 
Joined
Feb 21, 2016
Messages
48
Should be fully customisable, make the (unf) then make the completed ones

um... I apologize i'm not sure if i don't understand you or vice versa... but Super Combat Potions require multiple ingredients for them to be made. For example a super combat potion requires super attack, super strenght, super defence, and a torstol all in the inventory. Then using the torstol on one of the three super potions combines all of them into super combat potions. Is there any way to be able to do this with this bot or have this feature added?

Sorry for the miscommunication.. thanks!
 
Client Developer
Joined
Oct 12, 2015
Messages
3,758
um... I apologize i'm not sure if i don't understand you or vice versa... but Super Combat Potions require multiple ingredients for them to be made. For example a super combat potion requires super attack, super strenght, super defence, and a torstol all in the inventory. Then using the torstol on one of the three super potions combines all of them into super combat potions. Is there any way to be able to do this with this bot or have this feature added?

Sorry for the miscommunication.. thanks!

Ahhh... I seeee! Herblore on the account I'm using is only like 46 so it'll be difficult for me to write then test but it's definitely something I can look at.
 
Joined
Aug 26, 2015
Messages
12
Regarding entering your own values into the bot - you might find this useful to add to the (I started on a herblore bot but don't know enough to make it stable):
From UI/FXController:
Code:
public class OkadaHerbloreFXController implements Initializable {

    private OkadaHerblore bot;

    @FXML
    private ComboBox Potion_ComboBox;

    @FXML
    private CheckBox Clean_Herbs_CheckBox;

    @FXML
    private CheckBox Make_Unfinished_CheckBox;

    @FXML
    private CheckBox Make_Finished_CheckBox;

    @FXML
    private Button Start_BT;


    public OkadaHerbloreFXController(OkadaHerblore bot) {
        this.bot = bot;
    }

    @Override
    public void initialize(URL location, ResourceBundle resources) {
        // Add Potions to the combo box
        Potion_ComboBox.getItems().addAll(
          "Attack Potion",
          "Antipoison",
          "Relicym's balm",
          "Strength potion",
          "Serum 207",
          "Restore potion",
          "Guthix balance",
          "Energy potion",
          "Defence potion",
          "Agility potion",
          "Combat Potion",
          "Prayer potion",
          "Super attack potion",
          "Super antipoison",
          "Fishing potion",
          "Super energy potion",
          "Hunter Potion",
          "Super Strength potion",
          "Magic Essence potion",
          "Weapon poison",
          "Super restore potion",
          "Sanfew serum",
          "Super defence potion",
          "Anti-fire breath potion",
          "Ranging potion",
          "Magic potion",
          "Zamorak brew",
          "Saradomin brew"
        );

        // If the Start Button is pressed, handle that even in the getStart_BTAction method
        Start_BT.setOnAction(getStart_BTAction());

        // Set the event for Location_ComboBox
        Potion_ComboBox.setOnAction(getPotion_ComboBoxEvent());
    }

    private EventHandler<ActionEvent> getStart_BTAction() {
        return event -> {
            try {
                // Initialize all variables in your bot
                bot.guiWait = false;

                // Handle CheckBoxes
                if (Clean_Herbs_CheckBox.isSelected()){
                    bot.cleanHerbs = Boolean.TRUE;
                } else {
                    bot.cleanHerbs = Boolean.FALSE;
                }
                if (Make_Unfinished_CheckBox.isSelected()){
                    bot.makeUnfinished = Boolean.TRUE;
                } else {
                    bot.makeUnfinished = Boolean.FALSE;
                }
                if (Make_Finished_CheckBox.isSelected()){
                    bot.makeFinished = Boolean.TRUE;
                } else {
                    bot.makeFinished = Boolean.FALSE;
                }

                // Handle ComboBox
                switch(Potion_ComboBox.getSelectionModel().getSelectedItem().toString()){
                    case "Attack Potion":
                        bot.potionName = "Attack potion";
                        bot.unfPotionName = "Guam potion (unf)";
                        bot.herbName = "Guam leaf";
                        bot.ingredientName = "Eye of newt";
                        bot.requiredLvl = 3;
                        break;
                    case "Antipoison":
                        bot.potionName = "Antipoison";
                        bot.unfPotionName = "Marrentill potion (unf)";
                        bot.herbName = "Marrentill";
                        bot.ingredientName = "Unicorn horn dust";
                        bot.requiredLvl = 5;
                        break;
                    case "Relicym's balm":
                        bot.potionName = "Relicym's balm";
                        bot.unfPotionName = "Rogue's purse potion (unf)";
                        bot.herbName = "Rogue's purse";
                        bot.ingredientName = "Snakeweed";
                        bot.requiredLvl = 8;
                        break;
                    case "Strength potion":
                        bot.potionName = "Strength potion";
                        bot.unfPotionName = "Tarromin potion (unf)";
                        bot.herbName = "Tarromin";
                        bot.ingredientName = "Limpwurt root";
                        bot.requiredLvl = 12;
                        break;
                    case "Serum 207":
                        bot.potionName = "Serum 207";
                        bot.unfPotionName = "Tarromin potion (unf)";
                        bot.herbName = "Tarromin";
                        bot.ingredientName = "Ashes";
                        bot.requiredLvl = 15;
                        break;
                    case "Restore potion":
                        bot.potionName = "Restore potion";
                        bot.unfPotionName = "Harralander potion (unf)";
                        bot.herbName = "Harralander";
                        bot.ingredientName = "Red spider eggs";
                        bot.requiredLvl = 22;
                        break;
                    case "Guthix balance":
                        bot.potionName = "Guthix balance";
                        bot.unfPotionName = "Harralander potion (unf)";
                        bot.herbName = "Harralander";
                        bot.ingredientName = "Garlic, Red spider eggs, silver dust";
                        bot.requiredLvl = 22;
                        break;
                    case "Energy potion":
                        bot.potionName = "Energy potion";
                        bot.unfPotionName = "Harralander potion (unf)";
                        bot.herbName = "Harralander";
                        bot.ingredientName = "Chocolate dust";
                        bot.requiredLvl = 26;
                        break;
                    case "Defence potion":
                        bot.potionName = "Defence potion";
                        bot.unfPotionName = "Ranarr potion (unf)";
                        bot.herbName = "Ranarr weed";
                        bot.ingredientName = "Whiteberries";
                        bot.requiredLvl = 30;
                        break;
                    case "Agility potion":
                        bot.potionName = "Agility potion";
                        bot.unfPotionName = "Toadflax potion (unf)";
                        bot.herbName = "Toadflax";
                        bot.ingredientName = "Toad's legs";
                        bot.requiredLvl = 34;
                        break;
                    case "Combat Potion":
                        bot.potionName = "Combat Potion";
                        bot.unfPotionName = "Harralander potion (unf)";
                        bot.herbName = "Harralander";
                        bot.ingredientName = "Ground Goat's Horn";
                        bot.requiredLvl = 36;
                        break;
                    case "Prayer potion":
                        bot.potionName = "Prayer potion";
                        bot.unfPotionName = "Ranarr potion (unf)";
                        bot.herbName = "Ranarr weed";
                        bot.ingredientName = "Snape grass";
                        bot.requiredLvl = 38;
                        break;
                    case "Super attack potion":
                        bot.potionName = "Super attack potion";
                        bot.unfPotionName = "Irit potion (unf)";
                        bot.herbName = "Irit leaf";
                        bot.ingredientName = "Eye of newt";
                        bot.requiredLvl = 45;
                        break;
                    case "Super antipoison":
                        bot.potionName = "Super antipoison";
                        bot.unfPotionName = "Irit potion (unf)";
                        bot.herbName = "Irit leaf";
                        bot.ingredientName = "Unicorn horn dust";
                        bot.requiredLvl = 48;
                        break;
                    case "Fishing potion":
                        bot.potionName = "Fishing potion";
                        bot.unfPotionName = "Avantoe potion (unf)";
                        bot.herbName = "Avantoe";
                        bot.ingredientName = "Snape grass";
                        bot.requiredLvl = 50;
                        break;
                    case "Super energy potion":
                        bot.potionName = "Super energy potion";
                        bot.unfPotionName = "Avantoe potion (unf)";
                        bot.herbName = "Avantoe";
                        bot.ingredientName = "Mort Myre fungi";
                        bot.requiredLvl = 52;
                        break;
                    case "Hunter Potion":
                        bot.potionName = "Hunter Potion";
                        bot.unfPotionName = "Avantoe potion (unf)";
                        bot.herbName = "Avantoe";
                        bot.ingredientName = "Kebbit teeth dust";
                        bot.requiredLvl = 53;
                        break;
                    case "Super Strength potion":
                        bot.potionName = "Super Strength potion";
                        bot.unfPotionName = "Kwuarm potion (unf)";
                        bot.herbName = "Kwuarm";
                        bot.ingredientName = "Limpwurt root";
                        bot.requiredLvl = 55;
                        break;
                    case "Magic Essence potion":
                        bot.potionName = "Magic Essence potion";
                        bot.unfPotionName = "";
                        bot.herbName = "Starflower";
                        bot.ingredientName = "Gorak Claw";
                        bot.requiredLvl = 57;
                        break;
                    case "Weapon poison":
                        bot.potionName = "Weapon poison";
                        bot.unfPotionName = "Kwuarm potion (unf)";
                        bot.herbName = "Kwuarm";
                        bot.ingredientName = "Dragon scale dust";
                        bot.requiredLvl = 60;
                        break;
                    case "Super restore potion":
                        bot.potionName = "Super restore potion";
                        bot.unfPotionName = "Snapdragon potion (unf)";
                        bot.herbName = "Snapdragon";
                        bot.ingredientName = "Red spider eggs";
                        bot.requiredLvl = 63;
                        break;
                    case "Sanfew serum":
                        bot.potionName = "Sanfew serum";
                        bot.unfPotionName = "";
                        bot.herbName = "Super restore potion";
                        bot.ingredientName = "Ground unicorn horn, snake weed, nail beast nails";
                        bot.requiredLvl = 65;
                        break;
                    case "Super defence potion":
                        bot.potionName = "Super defence potion";
                        bot.unfPotionName = "Cadantine potion (unf)";
                        bot.herbName = "Cadantine";
                        bot.ingredientName = "Whiteberries";
                        bot.requiredLvl = 66;
                        break;
                    case "Anti-fire breath potion":
                        bot.potionName = "Anti-fire breath potion";
                        bot.unfPotionName = "Lantadyme potion (unf)";
                        bot.herbName = "Lantadyme";
                        bot.ingredientName = "Dragon scale dust";
                        bot.requiredLvl = 69;
                        break;
                    case "Ranging potion":
                        bot.potionName = "Ranging potion";
                        bot.unfPotionName = "Dwarf weed potion (unf)";
                        bot.herbName = "Dwarf weed";
                        bot.ingredientName = "Wine of Zamorak";
                        bot.requiredLvl = 72;
                        break;
                    case "Magic potion":
                        bot.potionName = "Magic potion";
                        bot.unfPotionName = "Lantadyme potion (unf)";
                        bot.herbName = "Lantadyme";
                        bot.ingredientName = "Potato Cactus";
                        bot.requiredLvl = 76;
                        break;
                    case "Zamorak brew":
                        bot.potionName = "Zamorak brew";
                        bot.unfPotionName = "Torstol potion (unf) ";
                        bot.herbName = "Torstol";
                        bot.ingredientName = "Jangerberries";
                        bot.requiredLvl = 78;
                        break;
                    case "Saradomin brew":
                        bot.potionName = "Saradomin brew";
                        bot.unfPotionName = "Toadflax potion (unf)";
                        bot.herbName = "Toadflax";
                        bot.ingredientName = "Crushed Bird's Nest";
                        bot.requiredLvl = 81;
                        break;
                }
                // Set the EmbeddableUI property to reflect your Info GUI
                Platform.runLater(() -> bot.setToInfoProperty());

            } catch (Exception e) {
                e.printStackTrace();
            }
        };
    }

And just initialize these vars in the main <botname>.java file:
Code:
    public String potionName;
    public String unfPotionName;
    public String herbName;
    public String ingredientName;
    private String vialName = "Vial of water";

Some are missing (such as super combat as mentioned) but that would be harder to do. Feel free to use it, was a PITA to pull that info out :p
 
Client Developer
Joined
Oct 12, 2015
Messages
3,758
I'd probably just make a huge-fuckoff enum or something to store all of that, too chunky for a controller imo ^^
 
Joined
Mar 16, 2016
Messages
99
bot stops working on level up until u correct it...
 
Could you add method with noted third ingredient?

Something like this:
To view this content we will need your consent to set third party cookies.
For more detailed information, see our cookies page.
 
Could u add at least herb cleaning?
 
Client Developer
Joined
Oct 12, 2015
Messages
3,758
Hey, sorry for not replying earlier.

My priorities currently lie elsewhere. However, looking over my old code makes me really sad, so rest assured this bot will be getting a full overhaul in the near(ish) future.
 
Client Developer
Joined
Oct 12, 2015
Messages
3,758
if it's not a secret, on what are you working on?

Massive revamp of Pest Control bot. Want it to be flawless.

I'm also rolling out my generic UI to all future bots (including rewrites) and any current bots that are worth it.
 
The man who can
Joined
Dec 14, 2015
Messages
91
It gets stuck when you level up
 
Wow I'm special I need to learn to read previous posts before commenting. I cri
 
Joined
Sep 22, 2015
Messages
58
Even with the latest patch it still gets stuck on leveling up, besides that working flawless.

(by stuck I have to finish creating the potions manually for the bot to continue or it will eventually logout)
 
Client Developer
Joined
Oct 12, 2015
Messages
3,758
Oh shit totally forgot to do that haha, latest update was just UI fix. Yeah ez fix I'll push tonight, not sure when it'll go to botstore though.
 
Status
Not open for further replies.
Top