Jump to content

Stando

Members
  • Posts

    27
  • Joined

  • Last visited

  • Feedback

    0%

Profile Information

  • Gender
    Male

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

Stando's Achievements

Bronze Poster

Bronze Poster (2/10)

3

Reputation

  1. Hello, I am in the market for proxies for OSBot. I heard that they have to be Socks5 residential proxies. I tried to use a proxy site called 1on1proxy today but it started to 404 at the checkout phase. This was recommended by a YouTuber who bots. Does anyone know of any proxies that could be used for OSBot? I am planning on running 10 bots, with about 3 - 4 accounts each proxy. If you have any suggestions or comments, please put them in this thread.
  2. Here is a video of the script working. The GUI asks the user for the enemy they would like to attack, item they would like to loot, and food that they would like to eat.
  3. The logger does not show me any errors . Do you see as to why the script would log me out after hitting "Start"?
  4. Thank you! This actually was a fix. How do I put spaces in between labels? This is how it currently looks (I put it in the WC GUI I made as an example). The GUI also logs me out after hitting start.
  5. I read through JTextfield. When I added one to my GUI, it stopped working.
  6. I actually used this guide for reference. What it doesn't show is allowing text input for IDs related to items or monsters. If someone could show me how to do that, maybe one on one, that would be great. Okay, this is a good idea. There should be databases openly available for monster IDs and item IDs.
  7. 387 may be Burnt Shark, but I do not have the IDs openly available unless I open OSBot. Thank you for stating this though. The ID would be changed manually by those who run the script. Just think of it as a placeholder for now.
  8. Hello everyone. I have developed a basic combat bot. This bot will attack any IDs that are placed within the array stating ENEMY_IDS. This bot can also check for one's health, and eat specific food based on the FOOD_IDs that are given to it. The LOOT array (or list) accepts any loot IDs. I would like as many people as possible to respond to this thread, and to post any feedback that they have in mind. Factors like how much experience you gained in your stats, or how long it took to get from one level to another would be appreciated! Also, if you would make any modifications, what modifications would you make? Below is the code for WhizFighter. The GUI elements can be ignored since they have not been implemented correctly yet. I am looking for a way to allow the user to input IDs and numbers they found from the debug menu in order to have them choose whatever monster to attack in game, rather than going through code and manually doing it that way.
  9. Wow, this seems like a good idea. I am going to test this line and see how it looks within the GUI.
  10. Hello everyone. Stando here. I am looking for someone to assist me/give me a tutorial in allowing user input for a GUI. I would like this GUI to accept any monster id so the user will automatically attack the monster. I know how to do this with JCombobox, but not with JTextField. Would anyone with this sort of knowledge be able to assist me?
  11. private void Woodcut() is void so it doesn't question for a return type when the method is actually activated within the loop. I left the extra areas in there on purpose since I got to level 15 and had the ability to chop Oaks. If it were a constructor, it would have the same name as the class of the script, which is WhizCutter.
  12. I was following this tutorial, but the GUI portion automatically logs me out after hitting start. Could anyone explain the reason for this?
  13. I just wanted to say I completely mimicked every step for the GUI, but when I hit start the program automatically logs out. Can anyone explain why this would happen after hitting start?
  14. Sounds good actually. I am not opposed to it, and I feel like that would also assist in learning.
  15. I have been somewhat successful in creating a Woodcutter. One issue I am having though is that once my bot gets 26 Oak logs in it's inventory, it should bank. Rather than banking, my bot will go all the way to the bank, pause, then forget about banking, just to go back to the trees with a full inventory, and loop this error again. /* WhizCutter Alpha Ver. 1.0 Created by Happy Chop trees in Lumbridge and banks them. Still waiting for first test. Bot got stuck after banking it's first load. If the bot is stuck in Lumby bank, it is probably searching for trees. Take back down to the trees behind the castle. Close the script, then restart it. The bot should now find trees. Possibly create one for different types of trees? Give ability to switch tree or location? Make sure to refresh bots(at times banking metod */ import org.osbot.rs07.api.map.Area; import org.osbot.rs07.api.map.constants.Banks; import org.osbot.rs07.api.ui.RS2Widget; import org.osbot.rs07.script.MethodProvider; import org.osbot.rs07.script.Script; import org.osbot.rs07.script.ScriptManifest; import org.osbot.rs07.utility.ConditionalSleep; import java.util.function.BooleanSupplier; @ScriptManifest(name = "WhizCutter", author = "Happy", info = "Cuts trees in Lumbridge", version = 1.0, logo = "") public final class WhizCutter extends Script { private final Area LumbyBank = new Area(3208, 3216, 3210, 3220); private final Area LumbyTrees = new Area(3197, 3208, 3187, 3235); private final Area VarrockWestBank = new Area(3180,3434,3185,3444); private final Area VarrockFrontOaks = new Area(3215,3359,3198,3373); @Override //Loops over and over until exit public final int onLoop() throws InterruptedException { Woodcut(); //May not need this line of code in the near future, but will need banking spots chopOakWood(); if (shouldIBankLogs() >= 26) { bank(); } return random(1000, 4000); } //Methods from here on alphabetized private void bank() throws InterruptedException { if (!Banks.VARROCK_WEST.contains(myPosition())) { getWalking().webWalk(Banks.VARROCK_WEST); } else if (!getBank().isOpen()) { getBank().open(); } else if (!getInventory().isEmptyExcept("Oak logs")) { getBank().depositAll("Oak logs"); } //stop(true); } private boolean chopOakWood() { return getObjects().closest("Oak").interact("Chop down"); } private boolean chopWood() { return getObjects().closest("Tree").interact("Chop down"); } private boolean inventoryIsFull() { return getInventory().isFull(); } private long shouldIBankLogs() { return getInventory().getAmount("Oak logs"); } private void Woodcut() { if (!VarrockFrontOaks.contains(myPosition())) { getWalking().webWalk(VarrockFrontOaks); } } } import org.osbot.rs07.utility.ConditionalSleep; import java.util.function.BooleanSupplier; class Sleep extends ConditionalSleep { private final BooleanSupplier condition; public Sleep(final BooleanSupplier condition, final int timeout) { super(timeout); this.condition = condition; } @Override public final boolean condition() throws InterruptedException { return condition.getAsBoolean(); } public static boolean sleepUntil(final BooleanSupplier condition, final int timeout) { return new Sleep(condition, timeout).sleep(); } }
×
×
  • Create New...