Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
osrs gold
Bottinghub.com

Interested in advertising your business? Reach out today!

Download the DreamBot client today!

Shy

Scripter
  • Content Count

    24
  • Joined

  • Last visited

Everything posted by Shy

  1. Shy

    script wont start

    public abstract class CowScript extends AbstractScript You declared your class abstract. You can't instantiate an abstract class. That's why you get " java.lang.InstantiationException" in the debug console.
  2. If your jar file shows up in the scripts folder, but doesn't show in the client, it can be caused by several things. 1. There's an error in your script 2. You forgot to put the ScriptManifest annotation in your script 3. You're not including your module output in the jar file
  3. Using the code you posted, I don't get the same result that you do. It only includes bank items. Are you sure there isn't something else in your code affecting this. Not sure if this would change anything, but make sure Dreambot is updated to the latest version and that you are using fresh start in Dreambot's settings.
  4. You might be able to just use CanReach, but I'm not sure if that would always work as expected for this purpose. https://dreambot.org/javadocs/org/dreambot/api/methods/map/Map.html#canReach-org.dreambot.api.methods.map.Tile- getMap().canReach(aTile); Another way is this https://dreambot.org/javadocs/org/dreambot/api/methods/map/Map.html#getFlag-org.dreambot.api.methods.map.Tile- https://dreambot.org/javadocs/org/dreambot/api/wrappers/map/impl/CollisionMap.html#isBlocked-int- Tile aTile = new Tile(3220,3220); int aTileFlag = getMap().getFlag(aTile); boolean canStand = CollisionMap.isBlocked(aTileFlag);
  5. Then define an area that doesn't include the mine south of rock crabs(I assume that's what you're talking about), and check if the Game Object is in that area as was previously recommended. Though I think another problem is that some rocks are just rocks at rock crabs if I remember correctly. GameObject crab = getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().contains("Rocks") && rockCrabArea.contains(gameObject) && !gameObject.hasAction("Mine"));
  6. It doesn't show when you hover over it, but it does if you right click doesn't it. I haven't been there in a long time. Not sure if this will work as I don't have an account to test it. GameObject crab = getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().contains("Sandy rocks")); if (!getLocalPlayer().isInCombat() && crab != null && crab.exists() && crab.distance(getLocalPlayer()) > 2) { if (getWalking().walk(crab)) { sleepUntil(()-> getLocalPlayer().isInCombat() || !crab.exists() || crab.distance(getLocalPlayer()) <= 2 , 5000); } }
  7. Shy

    Script review

    I think you need to click the plus button right above the jar file( should say Add Copy of when you hover over it) in that screenshot and then click Module Output and add your Module to the jar file.
  8. Shy

    Script review

    Are you sure you are putting the jar in the right folder (Dreambot > Scripts) and are you looking in the right tab in Dreambot (Local Scripts). I copied your code and it shows in Dreambot for me. Also, If you have any other scripts in that folder remove them and see if it still doesn't show because if one script is messed up it will cause all scripts to not show.
  9. Shy

    Script review

    GameObject rock = getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().equals("Rocks") && gameObject.hasAction("Mine"));
  10. 1. Suicide botting has just become pretty much impossible in F2P because of restrictions placed on new F2P accounts, so you would have to either build up accounts or pay for members. 2. Using a cheap proxy (that is most likely already flagged) will increase ban rates and get accounts locked, so you have to be careful with that. 3. No one will tell you what they bot, or even how they find new botting methods because it would affect their own profits. You will just have to experiment on your own and find what works and what doesn't. 4. Suicide botting vs high level accounts, it depends. Suicide botting is now only viable in P2P, so you would have to factor in the price of membership and determine if you can even make the money back before the account is banned. Long-term high levels accounts can make you a lot of money, but they also require a significant time investment to make, and it would be a big blow if/when they get banned.
  11. Have you added your osrs account to Dreambot? File > Manage Accounts You then need to select the account in the Script Manager before starting a script. It will always say "No Account" when you start Dreambot until after you select an account and start a script.
  12. https://dreambot.org/javadocs/org/dreambot/api/wrappers/interactive/Character.html#isInCombat-- https://dreambot.org/javadocs/org/dreambot/api/utilities/Timer.html Timer outOfCombatTimer = new Timer(); if (!getLocalPlayer().isInCombat()) { log(String.valueOf(outOfCombatTimer.elapsed())); } else { outOfCombatTimer.reset(); } This is just a short example to show what methods to use. You would probably want to write it a little different in a real script, but hopefully this helps you.
  13. Shy

    Shy Woodcutter

    Hi, maybe in the future, but not right now unfortunately . I looked into it, and it would be a pain to change because of how I wrote the script, or else I would do it. I just don't have enough time currently. In the future, I might re-write the script as I've learned quite a bit since then. If I do, I'll try to include an option that would make this possible. Ok, I have submitted an update to the SDN. Just have to wait for it to be approved now. Let me know if this update causes issues for anyone and I'll try to fix it asap. Version 1.1 Bug Fixes: spam clicking the mini-map when getting close to the bank occasional unnecessary clicks on the tree that is already being chopped New Features: Option to collect bird nests (can collect bird nests even if bank mode isn't enabled)
  14. Shy

    Shy Woodcutter

    I'll look into this later this week if I have time, and if it's not too much of a hassle to get working I'll add it to the script. No guarantees though.
  15. I assume you mean you're using OnPaint and want to be able to perform an action when the paint is clicked on in certain places. If so, you could implement MouseListener in your main script class. You could then use a rectangle to define an area where you want the paint to be interactive. private Rectangle aRectangle = new Rectangle(100,100,100,100); @Override public void mousePressed(MouseEvent e) { if (aRectangle.contains(e.getPoint())) { MethodProvider.log("Mouse pressed within rectangle."); } }
  16. I think you would have to do something similar to this. Check if the supplies for the item you are making are no longer in your inventory, and for level ups, use getDialogues().canContinue() MethodProvider.sleepUntil(() -> !getInventory().contains("Item Name") || getDialogues().canContinue(), 10000);
  17. Sorry, I misunderstood. Defiled has provided some good examples, but to add an additional one. If you only want to have two selection choices: private Random random = new Random(); int randomOfTwoNumbers = random.nextBoolean() ? 3 : 5); // replace 3 and 5 with the numbers you want
  18. https://dreambot.org/javadocs/org/dreambot/api/methods/Calculations.html#random-int-int-
  19. Shy

    Shy Woodcutter

    Hi, thank you for telling me. I really appreciate it. I think I have found and fixed the problem. The update is now live on the SDN, so let me know if you are still having any problems or find any new ones. Bug fixes * Script was changing locations even when it wasn't in Progressive Mode. * GUI was setting the wrong area for some locations that shared the same name for different tree types causing the bot to go to the wrong area and just stand there. As for the locations, I can add new locations if people have requests for certain locations. I wanted to make most of them in secluded areas to avoid being reported.
  20. Shy

    Shy Woodcutter

    Thank you! 🙂
  21. Shy

    Shy Woodcutter

    Shy Woodcutter Description: Chops most types of trees, Custom Areas, Progressive Mode, Upgrades Axes, Drop or Bank Logs. Features: Chops most types of trees Custom Areas: User can choose their own locations to chop trees. Progressive Mode: The bot will switch to the best tree it can chop(Currently, it only goes Tree->Oak->Willow->Yew) Upgrades Axes: The bot will go to the bank and upgrade to the best available axe based on Woodcutting level. Can drop or bank logs at the closest bank. Can collect bird nests Easy to use GUI Custom paint that can be opened and closed. Instructions: 1. Have an axe equipped or in the inventory 2. Check the boxes for which options you want 3. Select tree type 4. Select Area (if you choose custom area, you will need to go to the location you want the bot to chop. You then need to click the "Get Location" button to get your current coordinates. Finally, enter a value in the radius text box to set how wide of an area around the current coordinates that you want the bot to chop in. ) 5. Click the start button Please let me know of any bugs or other issues you encounter with the script, and I will try to fix them as soon as possible. This is my first script, and I am new to using Java.
  22. Are we allowed to include images(for paint, GUI, etc.) in the source files for scripts uploaded to the SDN or do we need to upload them to an image host and just get the link in our code?
  23. Are you sure OnLoop itself isn't getting invoked? Or is it just your code inside of onLoop that isn't running the way you think it should? You would need to post your code. It's hard to say what the problem is otherwise.
×
×
  • Create New...