Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 8 installed
  • 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
BottingHub.com Advertisment
Download the DreamBot client today!


  • Content Count

  • Joined

  • Last visited


About Shy

  • Rank

Recent Profile Visitors

389 profile views
  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."); } }
  • Create New...