Jump to content

Chikan

Members
  • Posts

    902
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    100%

Posts posted by Chikan

  1. Chikan's Uber Thieving

    gubHCHd.png?1

     

    GUI Support:
    88cb1d2b19f46c7d5d24d28abeefe8ec.gif

    Modes:

    Banking mode: While banking mode is active, the bot will automatically bank at the nearest bank if the inventory is full; the bot then deposits everything except the food item the user has chosen. (If food mode is selected.)

    Eat food mode: While 'Eat food' is ticked, and a food type is selected the bot will check the inventory for the selected food; if the selected food is not found it will find the nearest bank available and withdraw the selected amount you have chosen.

    Eat At: This setting will determine the health your character will eat at, but only if you have food mode enabled. Otherwise this section may be left on default.

    Number of food items: This setting determines how many food items you wish to grab from the bank each time you run out. Options currently are 1, 5, 10, or All. (All will withdraw as many as possible, and then return to the previous task)

     

    Instructions: Simply select a task you wish to preform, and if you wish for your character to bank stolen items; select the 'Banking mode' option. If you wish to have your character eat, select a food option, a healthpoint to eat at, and the number of food items you wish to bring along for each trip. Afterwards, just hit start and let it get gain you easy xp!

     

    Supported items to Steal from:

    Men

    Tea

    Master Farmer

    Silk Stall

    Baker's Stall

     

    Proggies:

    Spoiler

    33af42a9cbbdd469a4f87778fae05497.png

     

    FAQ:

    Q: When will the script be released?

    A: This script will be used for my S1 application, look for it on the SDN!

     

    Q: The script is broken, can you fix it?!!?!

    A: I will fix any issues if you can provide me details and logs of what is wrong. Fixes will be applied ASAP.

     

    What I'm working on adding -
     

    Spoiler

    HAM Members

    Warrior

    Guard

    Paladin

    Knight

    Hero

    Elf

    Tzhar-Hur

    __________

    Fruit Stall (Including evasion, and trapping method for the dogs)

    Silk Stall (Paladin && Guard evasion methods being perfected) -- will be done this part soon!

    ________

    Chests

    Note: More things will be added as I work on the script further, so keep an eye on the thread to see if I update anything!

    Download:

    (SCRIPT IS STILL UNDERDEVELOPMENT -- All methods are subject to change)

    http://s000.tinyupload.com/index.php?file_id=06063479683387552479

    Changelog:

    Spoiler

    v1.1 Added Silk stalls & Baker stalls to the list of options- 12/3/2017

    v1.2 Added Ardougne Knights to the list - 12/6/2017

     

    • Boge 2
  2. 6 minutes ago, Alek said:

    I've done this in OSBot before. The easiest way is to let the user type whatever they want. When when a user clicks a "submit" button, then your program parses the text, removes all invalid characters using regex, and processes the result. You can do this or detect invalid characters and give an error message.

    Edit:

    Input: v9 3
    Output: 93

    Or

    Input: v9 3
    Output: Error Message
     

    Alek senpai has graced me with his pressence *faints*

  3. Just now, Apaec said:

    I'm happy to help - why do you need a change listener though? And what do you mean 'convert changelistener to an int'? 

    Apa

    Sorry if I'm wording it wrong, but how to I get the value of the spinnerBox into the value of what I need what I'm trying right now:
     

    JSpinner eatAtSpinnerBox = new JSpinner();
    eatAtSpinnerBox.setModel(new SpinnerNumberModel(1, 1, 99, 1));
    eatAtSpinnerBox.addChangeListener(e -> vars.eatFoodThreshold = (int) eatAtSpinnerBox.getValue());

    I think this is what I was looking for, I'll try it and get back to you.

  4. 7 minutes ago, d0zza said:

    First, why is your JFormattedTextField called eatAtComboBox? 

    Second, casting a string to an integer like how you're doing won't always do what you expect. Use Integer.parseInt() instead.

    To do what you want add an actionlistener to your start button and set the variable inside that actionlistener using:

    eatFoodThreshold = Integer.parseInt(eatAtComboBox.getText());

    It used to be a comboBox, and I changed it without changing the variable name; I just didn't get around to it yet is all.

     

  5. 27 minutes ago, Apaec said:

    Have you considered using a JSpinner?

    This component should host the functionality that you're looking for, and is a more conventional choice when dealing with this kind of input.

    Best

    Apa

    I've switched it to a JSpinner, but I'm very unfamiliar with it. Would you be able to help me convert a changelistener to an int?

     

    		JSpinner eatAtSpinnerBox = new JSpinner();
    		eatAtSpinnerBox.addChangeListener(e -> vars.eatFoodThreshold = (int) eatAtSpinnerBox.getChangeListeners());
    		eatAtSpinnerBox.setModel(new SpinnerNumberModel(1, 1, 99, 1));

    72eba450cd54143b8b733bad018ef4c4.gif(It was what I was looking for btw thanks alot^-^)

  6. 		NumberFormat format = NumberFormat.getInstance();
    	    NumberFormatter formatter = new NumberFormatter(format);
    	    formatter.setValueClass(Integer.class);
    	    formatter.setMinimum(1);
    	    formatter.setMaximum(99);
    	    formatter.setAllowsInvalid(false);
    	    formatter.setCommitsOnValidEdit(true);
    		JFormattedTextField eatAtComboBox = new JFormattedTextField(formatter);
    		eatAtComboBox.addActionListener(e -> vars.eatFoodThreshold = (int) eatAtComboBox.getSelectedText()); /*<-- This part won't work, but my question is how can I get the textbox to return an int and to only allow an int. What I tried above doesn't seem to work. Any help appriciated.*/

    Essentially I'm trying to create a textbox for my GUI that only accepts 2 int values with a max of 99 and a min of 1, this will be used to set what hp the character will eat at. So, how can I do this to fit what I need?

  7. 6 hours ago, Prolax said:

    Just 60 defence would have been better for an obby tank.

    I would get 75 att 99 str 75 def.

    yeah hold on lemme just untrain my defence :doge: . I said old obby tank in the OP, this account was made in 2015 when the serp helm was op, ty for the suggestion though.

  8. 9 minutes ago, Theminis said:

    o. i dont really read updates I thought they did 4Head

    Most polls that help pures get auto declined because the community doesn't like that, that is how some people want to play the game. :feels:

    • Sad 1
×
×
  • Create New...