Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Worthy

Save and Load GUI settings

Recommended Posts

Save and Load GUI Settings Tutorial

by Worthy

 
In this tutorial
We will be using java.util Propteries class to save and load settings from your GUI (or anything else that is applicable)

________
Adding the proper variables for preparation.
In your Main class add the location to save the GUI settings

 
public static final File PATH  = new File(Util.getWorkingDirectory().getAbsolutePath(), "scriptname_" + "settings.ini");

 

 

In your GUI class we must create the Save and Load settings methods

 
    private Properties prop;
 
    public GUIExample() {
        this.prop = new Properties();
        initComponents();
    }

	private void saveSettings() {
        try {
            prop.clear();    //clear settings to avoid issues re-using this method (optional)
            prop.put("test2_checkBox", String.valueOf(test2_checkBox.isSelected()));    //example of JCheckBox
            prop.put("test1_comboBox", String.valueOf(test1_comboBox.getSelectedItem()));    //example of JComboBox
            prop.put("test1_spinner", String.valueOf(test1_spinner.getValue()));    //example of JSpinner
            prop.put("test1_textField", test1_textField.getText());    //example of JSpinner
            prop.store(new FileOutputStream(GUISettings.PATH), "GUI Settings");
        } catch (Exception e1) {
            System.out.print("Unable to save settings");
            e1.printStackTrace();
        }
    }

    public void loadSettings() {   //we will call this externally
        try {
            if (!GUISettings.PATH.exists()) {         //make sure file exists
                GUISettings.PATH.createNewFile();      //or make a new one
            }
            prop.load(new FileInputStream(GUISettings.PATH));
            String[] buttonNames = {"test2_checkBox"};   //helpful if all the names match
            JCheckBox[] boxes = {test2_checkBox};
            for (int i = 0; i < buttonNames.length; i++) {
                String value = prop.getProperty(buttonNames[i]);
                boxes[i].setSelected(Boolean.valueOf(value));   //load JCheckBoxes            //note you must convert the String to a boolean
            }
            String[] comboxNames = {"test1_comboBox"};
            JComboBox[] combos = {test1_comboBox};
            for (int i = 0; i < comboxNames.length; i++) {
                String value = prop.getProperty(comboxNames[i]);
                if (value != null) {
                    combos[i].setSelectedItem(value);         //load JComboBoxes                //note no conversion to an Object is necessary because a String is already an Object
                }
            }
            String[] spinnerNames = {"test1_spinner"};
            JSpinner[] spinners = {test1_spinner};
            for (int i = 0; i < spinnerNames.length; i++) {
                String value = prop.getProperty(spinnerNames[i]);
                if (value != null) {
                    spinners[i].setValue(Integer.parseInt(value));   //load JSpinners                //must take ints
                }
            }
            String[] textFieldNames = {"test1_textField"};
            JTextField[] textFields = {test1_textField};
            for (int i = 0; i < textFieldNames.length; i++) {
                String value = prop.getProperty(textFieldNames[i]);
                if (value != null) {
                    textFields[i].setText(value);   //load JTextFields
                }
            }
        } catch (Exception e2) {
            System.out.print("Unable to load settings");
            e2.printStackTrace();
        }
    }

 

 

Implementing the methods
On the "Start" button, we will call saveSettings();
On the script initiation we will call the loadSettings(); (after the GUI has been loaded)
 
-->Alternatively you can just create seperate save and load buttons on the GUI.


Tying everything together:
The first thing the script will do is declare the File Path, and initiate the Preferences file.
When the GUI loads, the script will then call loadSettings(), loading the settings (if any).
If no settings are saved, it well then create a new file in the path.
Right before the GUI is disposed it will save all the settings the user has applied in TRiBot's storage directory. (You can print out the location if you don't know where that is for your OS).

_________
Complete Example script:
GUISettings.java (Main class)

 
package scripts;

import org.tribot.api.General;
import org.tribot.script.Script;
import org.tribot.script.ScriptManifest;
import org.tribot.util.Util;

import javax.swing.*;
import java.io.File;

@ScriptManifest(authors = {"Worthy"}, category = "Tools", name = "GUI Settings Example", description="v1")
public class GUISettings extends Script {

    public static final File PATH  = new File(Util.getWorkingDirectory().getAbsolutePath(), "scriptname_" + "settings.ini");
    private GUIExample guiExample;

    @Override
    public void run() {
        //this code initializes and displays your GUI
        guiExample = new GUIExample();
        try {
            SwingUtilities.invokeLater(() -> {
                guiExample.loadSettings();
                guiExample.setVisible(true);
            });
        } catch (Throwable ignore) {
            System.out.println("Failed to load error Popup GUI.");
        }

        //your script logic here:
        while (!guiExample.isDoneFillingOutGUI()) {
            General.sleep(500);
        }
    }
}

 


GUIExample.java (GUI class)

 
package scripts;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionEvent;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.util.Properties;

/**
 * @author Worthy
 */
public class GUIExample extends JFrame {

    private Properties prop;
    private boolean waitForGUI = true;

    public GUIExample() {
        this.prop = new Properties();
        initComponents();
    }

    public boolean isDoneFillingOutGUI() {
        return !waitForGUI;
    }

    private void button_startActionPerformed(ActionEvent e) {
        // do script code variable assignment and other stuff here

        saveSettings();
        waitForGUI = false; //can use this to notify script when user is done selecting GUI options
        this.dispose();
    }

    private void saveSettings() {
        try {
            prop.clear();    //clear settings to avoid issues re-using this method (optional)
            prop.put("test2_checkBox", String.valueOf(test2_checkBox.isSelected()));    //example of JCheckBox
            prop.put("test1_comboBox", String.valueOf(test1_comboBox.getSelectedItem()));    //example of JComboBox
            prop.put("test1_spinner", String.valueOf(test1_spinner.getValue()));    //example of JSpinner
            prop.put("test1_textField", test1_textField.getText());    //example of JSpinner
            prop.store(new FileOutputStream(GUISettings.PATH), "GUI Settings");
        } catch (Exception e1) {
            System.out.print("Unable to save settings");
            e1.printStackTrace();
        }
    }

    public void loadSettings() {   //we will call this externally
        try {
            if (!GUISettings.PATH.exists()) {         //make sure file exists
                GUISettings.PATH.createNewFile();      //or make a new one
            }
            prop.load(new FileInputStream(GUISettings.PATH));
            String[] buttonNames = {"test2_checkBox"};   //helpful if all the names match
            JCheckBox[] boxes = {test2_checkBox};
            for (int i = 0; i < buttonNames.length; i++) {
                String value = prop.getProperty(buttonNames[i]);
                boxes[i].setSelected(Boolean.valueOf(value));   //load JCheckBoxes            //note you must convert the String to a boolean
            }
            String[] comboxNames = {"test1_comboBox"};
            JComboBox[] combos = {test1_comboBox};
            for (int i = 0; i < comboxNames.length; i++) {
                String value = prop.getProperty(comboxNames[i]);
                if (value != null) {
                    combos[i].setSelectedItem(value);         //load JComboBoxes                //note no conversion to an Object is necessary because a String is already an Object
                }
            }
            String[] spinnerNames = {"test1_spinner"};
            JSpinner[] spinners = {test1_spinner};
            for (int i = 0; i < spinnerNames.length; i++) {
                String value = prop.getProperty(spinnerNames[i]);
                if (value != null) {
                    spinners[i].setValue(Integer.parseInt(value));   //load JSpinners                //must take ints
                }
            }
            String[] textFieldNames = {"test1_textField"};
            JTextField[] textFields = {test1_textField};
            for (int i = 0; i < textFieldNames.length; i++) {
                String value = prop.getProperty(textFieldNames[i]);
                if (value != null) {
                    textFields[i].setText(value);   //load JTextFields
                }
            }
        } catch (Exception e2) {
            System.out.print("Unable to load settings");
            e2.printStackTrace();
        }
    }

    //this GUI has been generated using a GUI builder
    private void initComponents() {
        button_start = new JButton();
        test2_checkBox = new JCheckBox();
        test1_comboBox = new JComboBox<>();
        label1 = new JLabel();
        test1_spinner = new JSpinner();
        label2 = new JLabel();
        label3 = new JLabel();
        test1_textField = new JTextField();
        separator1 = new JSeparator();

        //======== this ========
        setTitle("Example GUI");
        setAlwaysOnTop(true);
        Container contentPane = getContentPane();
        contentPane.setLayout(null);

        //---- button_start ----
        button_start.setText("Start (Dispose and Save)");
        button_start.addActionListener(e -> button_startActionPerformed(e));
        contentPane.add(button_start);
        button_start.setBounds(85, 155, 190, 23);

        //---- test2_checkBox ----
        test2_checkBox.setText("check");
        contentPane.add(test2_checkBox);
        test2_checkBox.setBounds(15, 35, 60, 23);

        //---- test1_comboBox ----
        test1_comboBox.setModel(new DefaultComboBoxModel<>(new String[] {
            "test1",
            "test2",
            "test3",
            "test4",
            "pizza"
        }));
        contentPane.add(test1_comboBox);
        test1_comboBox.setBounds(185, 70, 130, test1_comboBox.getPreferredSize().height);

        //---- label1 ----
        label1.setText("Select any Option!");
        contentPane.add(label1);
        label1.setBounds(15, 70, 125, 20);
        contentPane.add(test1_spinner);
        test1_spinner.setBounds(185, 95, 130, test1_spinner.getPreferredSize().height);

        //---- label2 ----
        label2.setText("Input any Value!");
        contentPane.add(label2);
        label2.setBounds(15, 95, 95, 20);

        //---- label3 ----
        label3.setText("Write anything!");
        contentPane.add(label3);
        label3.setBounds(15, 120, 95, 20);
        contentPane.add(test1_textField);
        test1_textField.setBounds(185, 115, 130, test1_textField.getPreferredSize().height);
        contentPane.add(separator1);
        separator1.setBounds(15, 60, separator1.getPreferredSize().width, 2);

        { // compute preferred size
            Dimension preferredSize = new Dimension();
            for(int i = 0; i < contentPane.getComponentCount(); i++) {
                Rectangle bounds = contentPane.getComponent(i).getBounds();
                preferredSize.width = Math.max(bounds.x + bounds.width, preferredSize.width);
                preferredSize.height = Math.max(bounds.y + bounds.height, preferredSize.height);
            }
            Insets insets = contentPane.getInsets();
            preferredSize.width += insets.right;
            preferredSize.height += insets.bottom;
            contentPane.setMinimumSize(preferredSize);
            contentPane.setPreferredSize(preferredSize);
        }
        setSize(360, 230);
        setLocationRelativeTo(null);
    }

    private JButton button_start;
    private JCheckBox test2_checkBox;
    private JComboBox<String> test1_comboBox;
    private JLabel label1;
    private JSpinner test1_spinner;
    private JLabel label2;
    private JLabel label3;
    private JTextField test1_textField;
    private JSeparator separator1;
}

 

 

 


Regards,
Worthy

 

 

Edited by Worthy
  • Like 2

Share this post


Link to post
Share on other sites
Properties props = new Properties();File file = new File(Util.getWorkingDirectory().getAbsolutePath() + "name.ini");props.load(new FileReader(file));props.load(new FileWriter(file), "");

Use props like you would a HashMap of type <String, String>, that is all you need.

Share this post


Link to post
Share on other sites
Properties props = new Properties();File file = new File(Util.getWorkingDirectory().getAbsolutePath() + "name.ini");props.load(new FileReader(file));props.load(new FileWriter(file), "");

Use props like you would a HashMap of type <String, String>, that is all you need.

 

I don't see why that is necessary when you can use a FileInputStream.

And yeah you do use it like HashMap with the put and getProperty settings :)

Edited by Worthy

Share this post


Link to post
Share on other sites

I don't see why that is necessary when you can use a FileInputStream.

And yeah you do use it like HashMap with the put and getProperty settings :)

You have extra code in there. FileWriter will just write to that file, and create a new one if one does not exist yet. You also don't need to use clear.

Share this post


Link to post
Share on other sites
On 10/19/2016 at 10:25 PM, OjDidntDoIt said:

i purchased script and can't seen to get it to work can't save a preset for it to start 

 

 

1 hour ago, dazarius said:

i purchased script can get it to work will only list what to do in text no green click here stuff or ground positioning

This is a programming tutorial on how to save GUI settings.
If you need help with a specific script, post your issue on the script's thread for assistance.

  • Like 1

Share this post


Link to post
Share on other sites
53 minutes ago, Shockplug said:

Very nice tutorial! If you want to write an object to file using props does it have to be a string? 

If you would like to store a java object then I recommend looking up Serialization.

If you want to store something using properties it does not have to be a string, just any nonnull object will do. Properties are just a key-value pair mapping between objects.

Share this post


Link to post
Share on other sites
On 3/7/2017 at 8:34 PM, Worthy said:

If you would like to store a java object then I recommend looking up Serialization.

If you want to store something using properties it does not have to be a string, just any nonnull object will do. Properties are just a key-value pair mapping between objects.

Yea, I was thinking I would just use serialization, thanks!

Share this post


Link to post
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.


  • Similar Content

    • By Worthy
      AIO Constructor
      By Worthy
       
      Features
      Construct Any Item Including: Planks Bagged plants - FARMING XP! Refills watering cans in house sink Or fetches pre-filled watering cans from the bank Nails Marble Mythical cape
        Multiple Banking Methods Manual banking - Rimmington/Falador, Yanille Ring of Dueling and House Teleports Phials unnoting planks Servant fetch from bank Servant un-note items from inventory
        Synchronized Servant Support Cook Butler Demon Butler
        User Experience This entire script has been rewritten optimized for efficiency and flawlessness  Antiban Compliance (ABC2) Level 10/10 Quick and easy to use GUI setup Script arguments (skip GUI set-up) Slick mousepaint and paint Dynamic signature system (more info below) Hiscores page  
      Set-up
      Start with just a hammer and saw in Inventory. Only if using Servants have coins in Inventory too, or keep them in the servant's money pouch. If using Servants Un-noting have noted planks in Inventory too Only if using Phials Unnoting have noted planks (just the type you are using) in Inventory too. Only if using RoD/Tele Banking have house tabs in Inventory too.  
      Recommended Items to Build
      Levels 1 - 19 → Crude Wooden Chairs (need 138 planks and nails) Levels 19 - 33 → Oak Chairs (need 238 oak planks) Levels 33 - 70  → Oak Larders Levels 70 - 99 → Oak Dungeon Doors 
      OR Levels 52 - 99 → Mahogany Tables (fastest if you have $$)
      OR Levels 47 - 99 → Mythical Capes (requires Dragon Slayer 2 but saves money)
      Creating a preset

      Make sure to create the preset using your mouse only! (no hot-keys).
       
      Notes
      If you find the bot is building and removing items very slowly, you can adjust the ABC2 sleep multiplier.
      This reduces the delays in the script (for Antiban) and is a multiplier on the time which the bot sleeps, ranging from 0.1 - 1.0.
      Say the bot was supposed to sleep for 5 seconds, but with a 0.5x multiplier it now sleeps for only 2.5 seconds.
      A delay of at least 0.5x is recommend.
       
      Script Arguments
       
      Click to buy or try a free 2 hour trial:
       
      4.99 CREDITS for 1 MONTH per Auth
      Or 9.99 CREDITS for 6 MONTHS per Auth
      OR 14.99 CREDITS for 6 MONTHS per 3 Auths
       
      Troubleshooting and Bug Reports

      Check your hiscore ranking here!
      Grab your dynamic signature by going to the follow site:
      http://www.worthy.rs/tribot-php/AIOConstructor/sigs/YOUR_TRIBOT_USERNAME_HERE.png  
      Happy Botting! 
      Worthy
    • By Worthy
      Welcome to Worthy Scripts
      |w| Zulrah Slayer
      Features
      Automatic Grand Exchange restocking! When out of supplies, the bot can sell loot, ready up, buy more, and continue! Using the resource tracker, the bot automatically calculates how many supplies it needs Essentially with enough GP you can run the bot forever!  Automatic Muling! When the bot has enough wealth, mule over the extra GP and keep it safe! Works with the partner script: |w| Zulrah Muler Here is an example of 2.1B (pure profit) being collected from 33 accounts running for 54 hours:
        Loot tracker. Analyze your drops! This data along with other statistics are saved every run time by the Zulrah Sessions System. Resource tracker. Track every item the bot consumes while playing (and how much it cost!) This data is saved and used to compute exactly how many supplies are needed when doing the automatic Restocking With this tool your pure profit is displayed  Resizeable mode compatible! This is one of the most human-like antibans any botting client can offer. Looking Glass compatible The script now functions smoothly with TRiBot's beta feature Looking Glass Unlimited multi-kill performance The bot will determine if it has enough supplies to start another Zulrah battle after killing the boss the previous time. It can continue doing this until it runs out of food, allowing a single, double, triple, or quad+ kill. Zulrah fight CPU efficient! Ability to run the client minimized.  Dynamically prioritized combat framework Many Travel methods Zul-Andra teleport scrolls Charter Travel Camelot port [via Camelot teleports] Catherby port [via Catherby port lunar teleport] Khazard port [via Khazard port lunar teleport] Fairy Ring Network Fairy ring via Varrock Teleport Fairy ring via Quest Cape Fairy ring via Ardougne Cloak Fairy ring via Salve Graveyard Teleport Fairy ring via slayer ring Fairy ring via House Teleport (mounted) Ornate pool support If so, the script will use castle wars bank instead Jewelry box support If so, the script will use a custom kill / bank loop (with no Ring of Dueling) Or use another player's house! Ability to input a list of names. There is almost every customizeable option for every travel method. Please ask in the discord support server if you have questions  There are also combinations of some of the above travel methods Reorganizes inventory! Drags and drops items like a real player Swaps between gear sets of range and magic Or instead use magic gear only and use a custom positioning algorithm to hide behind pillars Option to skip the blue pattern which deals the most damage   Repairs barrows armor  Supports TRiBot breaking system Hiscores system (below) Tracks GP acquired from Loot, Resources, and computes Profit Tracks rare drops and pets Dynamic signatures (below) Automatic screenshot progress report system every hour
      Detailed session log dump. Keep track of exactly how all your bots do!
      TRiBot Antiban Compliance V2 Level 10/10 The script is also packed with custom statistic-based antipattern I have personally developed. Smart options to determine when to use long range or keep level 1-def Tracks and handles JAD phases flawlessly Deathwalk - SAFE BOSS: never lose your items on death Recharges Trident of the Seas, Trident of the Swamp, Toxic Blowpipe, Serpentine Helm (all forms) Tracks ammunition and recharges special weapons Resizable mode options to optimize gameplay Supports serpentine helmets Supports cooked karambwans Supports special attacks Supports ring of suffering Supports prayer potions / super restores Supports stamina potions Supports summer pies for agility boost Supports imbued heart Supports custom world hopping Supports new rigour and augury prayers Supports vengeance spell with optimal timing Option to use these with rune pouch Supports custom script ending conditions Supports multiple algorithms to fight Zulrah for click-related functions Supports custom f-key bindings Supports in-phase timing: prefer to do actions at the end of phases Picks up and banks the Zulrah pet  
      Official Discord Discussion
      http://discord.gg/yeCVsad
       
      External Documentation Thread
      A lot of the specific information about the features above is on the Documentation thread.
      It can be found by pressing the "READ ME" button on the GUI after the script is purchased.
      It will help you:
      Create an armor preset Decide what gear to wear Set up the GUI to be tailored to your RuneScape character Start the script correctly Other notable information  
      Proggies









      More: http://imgur.com/a/HNaQZ
      Even more: http://imgur.com/a/lsh82

      Requirements
      - 80 to 85+ range/magic (85+ magic necessary as it is the most important stat). If using LG, have at least 85 of both.
      - High defence and hp (>= 70 for barrows), HP recommend at least 75
      - 43+ prayer
      - Regicide, Underground pass, Biohazard, and Plague City required

      Live Hiscores System
      V2 Hiscores (Data wiped and recollected since June 7th, 2019 to track pure profit [loot - resources])
      Dynamic Signatures:
      Automatically load an image of your current stats, which updates as you bot!
      http://www.worthy.rs/tribot-php/ZulrahSlayerV2/sigs/USERNAME_HERE.png Just replace USERNAME_HERE with your TRiBot username (case-sensitive), and copy and paste it the image link itself into your signature here:
       (should be on the bottom right of your signature edit box).
      Does your name have special characters? Simply find the link for your signature in the hiscores link above.


      Pricing
      The Casual Botter
      - 14.99 CREDITS | 1 auth for 2 weeks
      - 24.99 CREDITS | 1 auth for 1 month
      Note you can buy multiple of the above as well

      Gold Farmer's Discount
      - 79.99 CREDITS | 5 auths for 1 month
      - 134.99 CREDITS | 10 auths for 1 month
      - 174.99 CREDITS | 15 auths for 1 month
      - 224.99 CREDITS | 25 auths for 1 month
      - 299.99 CREDITS | 50 auths for 1 month
      Note: the number of auths designates the number of RS accounts you can run on this script at a given time.


      Requirements
      Quests: Plague City, Biohazard, Underground Pass, and Recigide (up to the point where you can access Zulrah)
      Stats: 85+ range, 85+ magic recommended 
       
      Click below to purchase or for FREE TWO HOUR TRIAL:

       
      Troubleshooting Guide:
       
      Happy Botting!
      Worthy 
    • By Worthy
      Add my discord for communication (worthy#2076)
      Paypal is for select users, only if you have a decent amount of risk in the runescape community (such as many private / premium scripts, donations, etc.); I will ask you some questions and evaluate your risk.
      You can also build trust by trading with me in small increments (using the same PayPal email). So even if you don't have a lot of risk in the community, we can gradually build up payments over time for example: 50m today to start, 100m next week, 300m the next week, etc.
      Interac E-Transfer is for Canadians only! This method is always accepted
      TRiBot Credits - always accepted. 
       
      NEW LOW PRICE OF:
      $0.96/M (25 - 49m)
      $0.93/M (50m+)
      $0.90/M (100m+)
       
      PLENTY IN STOCK
       
       
      Regards,
      Worthy
    • By Worthy
      Accessible now through the script's GUI!
      Just click "READ ME!"

      If you are botting on a remote machine and have difficulties browsing the web (and thus the documentation), pressing the "READ ME" button will also print your link and access token in the Client Debug. You may view this link in any web browser for 5 minutes to view the documentation on any computer.
      So, once pressing the "READ ME" button, the following link to view the documentation is generated in the Client Debug: http://worthy.rs/ZulrahSlayer/documentation.php?user=worthy
      (except it will show your TRiBot name).
    • By Worthy
      Welcome to Worthy Scripts
      |w| Zulrah Helper
       
      NOTE: This script does NOT kill Zulrah for you. It guides you through the kill process and tracks information.
      Think of it as a plugin for RuneScape (as the script never directly interacts with the game, but just paints information on the screen).

      Features
      No risk of ban from the script itself (the only other factor could be the Client but @TRiLeZ states it is undetectable) Easy to set-up GUI Hiscores system (below) Automatic screenshot progress report system every hour Supports resizable mode! (side-panels and transparent chat box support). The bot can remind you to Recharge the blowpipe/trident/serpentime helmets Select the best prayers Wear the selected armor Change combat styles Eat food Cure venom Equip rings of recoil Drink prayer/mage/range potions Use special attacks Repair barrows armor Pickups pets The script guides you to kill Zulrah in the most efficient manner, even taking in Melee safe spots into account Now supporting resizable mode! You may even adjust the size of the script while the script is active!
       
      GUI Settings

       
      How it works (note this is a human playing)
       

      How to setup an equipment profile (from my Zulrah Slayer but same concept)
       
      Requirements
      - 80 to 85+ range/hp/def/magic
      - 43+ prayer
      - Regicide, Underground pass, Biohazard, and Plague City required

      Hiscores System
      Link
       
      Proggies

       
      Pricing
      - 9.99 CREDITS | 6 Months | 1 Auth
      Get it here now!

       
      Dynamic Signature

      [center][url=https://tribot.org/forums/topic/53608-/][img=http://www.worthy.rs/tribot-php/ZulrahHelper/sigs/USERNAME_HERE.png][/url][/center]  
      Things to note:
      Green tiles are where you should currently stand Blue tiles are where you should get ready to stand next Red tiles are where Zulrah will spawn Do use karambwans and magic/range potions for faster kills. Do use function keys (esc, f5) so switch tabs quicker. If a karambwan and food is glowing in green, eat the food first and then the karambwan. When battling a certain Zulrah phase, hover over the blue dot on the minimap, and the second Zulrah dives into the ground, click the blue square. Afterwards then wear your new armor, pray the new prayers, eat (if needed), and change combat styles (if needed). Watch this informative video detailing how to deal with the JAD phase  This script is just an overlay, it is not supposed to be meant with LG as it does not interact with the game. TRiLeZ has stated the client is undetectable, and the script does not interact with the game, so there is no chance of a ban, thus LG is not plausible to use. IF using Looking Glass, use 64-bit OSBuddy. Additionally go into File > Settings on the TRiBot client and increase the paint delay to 50+ to reduce lag.  
      With the required stats, you should be able to "legit" Zulrah in a few kills.
      There is also a two hour trial with the script! Don't be alarmed if you don't kill it on the first try though, it could take a few times to get into the rhythm.

      Regards,
      Worthy
    • By JonSnow
      Hi,
      how do I load a script on TRiBot?
      thanks.
    • By Cruppet
      hey, when i try to load the client, it says it cant find java.exe in the folder, yet java.exe is in the folder. im using a .jar loader, if that could be the problem, help pls, thanks!
    • By forrybaldwin
      Whenever I open up a new client is goes through the "downloading jar" and "updation process", but after that it just shows a white screen. I'm running osrs in fixed mode so it can't be that. Here is the debug info:
      [10:39:36] TRiBot Release 9.305_0 loaded. (1.8.0_111:C:\Program Files\Java\jdk1.8.0_111\jre)
      [10:39:36] Loading human mouse movement data.
      [10:39:37] Successfully loaded human mouse data.
      [10:39:57] Error: bw.() bh.ah() | SampleModel:126 SinglePixelPackedSampleModel:144 SinglePixelPackedSampleModel:110 PackedColorModel:310 bw:28 bh:292 bh:332 Thread:745 | java.lang.IllegalArgumentException: Width (0) and height (0) must be > 0
      [10:39:57] error_game_crash
      [10:39:57] Show document: http://oldschool101.runescape.com/error_game_crash.ws (_self)
       
      Anyone know what's up with it?
  • Our picks

    • This update features:

      Fixed broken hooks from today's update


      Fix wilderness level with RuneLite (Thanks @Todd)


      Add support for Kotlin .class files in scripts (Thanks @wastedbro)


      Overhaul Inventory API (Thanks @wastedbro)


      Add List support for common methods


      Change method grouping to make more sense (by functionality)


      Refactor methods to utilize Java 8 streams instead of cumbersome loops




      Recognize chatbox minimization (Thanks @JoeDezzy1)


      Fix Screen#isInViewport when NPC chat is open (Thanks @JoeDezzy1)


      Fix login bot bugs (Thanks @erickho123)


      Fix hint arrow return values (Thanks @Encoded)


      Fix depositAllExcept functionality (Thanks @wastedbro)


      Change containing box interface bound and adjust for Y values (Thanks @erickho123)
        • Like
      • 151 replies
    • This release will:

      Fix prayers and world hopper API (Thanks @JoeDezzy1 and @erickho123)


      Improve banking API (Thanks @Encoded)


      Adds methods for returning and using Java Lists, rather than arrays


      Slightly randomizes some hardcoded behaviour


      Removes sleeps from waitConditions; the efficiency saving potential is negligible in these use-cases, therefore cleaner code is preferable


      Other back-end improvements





      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Sad
        • Haha
        • Thanks
        • Like
      • 90 replies
    • This release will:

      Add new internal framework for capturing exceptions


      Fix issue with not selecting the last column in world hopper (Thanks @Todd)


      Add a message about pin usage in Banking#openBank (Thanks @Todd)


      Disable the firewall by default (Thanks @Todd)


      Fix handling of the welcome screen after login (Thanks @Encoded)


      Fix wrong amount bank withdrawal (Thanks @Encoded)


      Fix Screen#isInViewport


      Fix Game#isInViewport (Thanks @Encoded)


      Call onBreakEnd for ListenerManager Breaking Listeners (Thanks @Encoded)


      Fix Prayer#getPrayerPoints NumberFormatException (Thanks @JoeDezzy1)



      Note: If you are using LG, please restart both the RS client and TRiBot.
        • Thanks
        • Like
      • 28 replies
    • This release will:

      Fix LG for both OSBuddy and RuneLite


      Fix issue where the resizable client isn't able to be made smaller (Thanks @JoeDezzy1)


      Fix detection of the logout game tab when resizable mode and side panels are enabled (Thanks @JoeDezzy1)


      Add initial support for Sentry to allow us to identify and easily debug exceptions happening with all TRiBot users


      Add methods to determine if the bank is actually loaded, and not just the overarching interface (Thanks @wastedbro)



      Upcoming updates:

      Improved CLI support


      Full Sentry support


      Much more
        • Like
      • 64 replies
    • This release will:

      Fix NPE in Camera API (Thanks @wastedbro)


      Update deposit box interface ids (Thanks @Encoded)


      Add various bank methods (Thanks @wastedbro)


      Banking#getWithdrawXQuantity


      Banking#getDefaultWithdrawQuantity


      Banking#arePlaceholdersOn




      Fix resizeable minimap bug (Thanks @wastedbro)


      Remove Java 8 requirement


      Please note: TRiBot is not yet fully compatible with Java 10+




      Fix the break handler issues by ensuring the break handler thread never gets paused


      Fix broken settings hooks



      Upcoming updates:

      Improved CLI support


      Much more



      Note: If you are using LG, please restart both the RS client and TRiBot
        • Like
      • 68 replies
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...