Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Make sure you have Java 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
  • flipjazz

    • Content Count

    • Joined

    • Last visited

    About flipjazz

    • Rank

    Recent Profile Visitors

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

    1. I think you still have a couple if-statements with `if {` but not closing it with a closing brace `}` later on. You might still have more errors after. If you're still stuck, I would recommend starting from scratch and just focus on adding one small thing at a time. Just focus on getting fighting working, then add in getting wines, and then banking. Would be a better learning experience then trying to get it all right in one go. Also are you using IntelliJ? It would help you a lot with getting your indents/tabs right and figuring out these errors. Would recommend the dreambot guides
    2. In your State enum you have to make the `state` variable a String instead of "State". Later on when you do `this.state = state` you try to assign a State enum to a String, which is the problem. public enum State { FIGHTING("Fighting"), BANKING("Banking"), WINE("Wine"); // This needs to be changed to type String private State state; // Should be `private String state;` instead ... } Line 68 -- Don't forget to give your variable a type. Should be `State state = getState();`
    3. I'm pretty new to scripting, so not sure if i'm right... I think if you're using the TaskNode/TaskScript stuff, maybe you can avoid using the States enum. just use the TaskNode to be your "state" You'll have several TaskNodes that get run like AttackCowTaskNode or WalkingTaskNode. Then you can use getLastTaskNode() to get the task node you were just on. public void onPaint(Graphics2D g) { TaskNode previousNode = getLastTaskNode(); // Then fill in the blank with the task node. Maybe give // it a new toString() method, so you can just print it out directly. g.dr
    4. Hey, I've been trying to change the zoom settings of the camera but haven't gotten it to work. Mouse.scrollDownUntil(10000, () -> true); Mouse.scrollDownUntil(10000, () -> false); Mouse.scrollUpUntil(10000, () -> true); Mouse.scrollUpUntil(10000, () -> false); None of the above seems to modify the zoom for me. Is it just me or anyone else having this issue?
    5. How do you tell a script to stop running and log the account out? I tried `Tabs.logout()` but it kept retriggering the login handler to log back in.
    6. Hey, started to learn how to script. Here is a basic Lumbridge anchovies fisher I wrote. Let me know if you have any tips! I saw some scripts do some human like movements like clicking on skills tab or change camera angle. Wondering how important this is and how to do it. import org.dreambot.api.Client; import org.dreambot.api.methods.MethodProvider; import org.dreambot.api.methods.container.impl.Inventory; import org.dreambot.api.methods.container.impl.bank.Bank; import org.dreambot.api.methods.container.impl.bank.BankLocation; import org.dreambot.api.methods.container.impl.bank.
    7. I had the same problem. Was able to fix it by relying on the local dreambot client.jar that is downloaded rather than getting the jar from maven. So basically use this: <properties> <dreambot.path>${user.home}/DreamBot/</dreambot.path> </properties> <dependencies> <dependency> <groupId>dreambot</groupId> <artifactId>client</artifactId> <version>1.0.0</version> <scope>system</scope> <systemPath>${dreambot.path}/BotData/client.jar</systemPath>
    • Create New...