Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • 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/Crypto gold? You can purchase vouchers from other users
  • [Video Tutorial Series] | Dreambot Scripting | Request scripting tutorials here.


    Computor

    Recommended Posts

    That can be fixed by starting the script logged in. If you start outside of the game, YOUR TOTAL xp is added when you log in.

    thanks for reply, but it doesn't make a differents if I'm already logged in or not :/

     

    No big deal though

    Link to comment
    Share on other sites

    thanks for reply, but it doesn't make a differents if I'm already logged in or not :/

     

    No big deal though

    Are you starting the XP counter in your onStart() method? Meaning:

     

    getSkillTracker().start(Skill.WOODCUTTING);
    
    Link to comment
    Share on other sites

    Really really loved this! thanks a billion. even with my minimal knowledge this helped me pick up the general idea.
     


    John's Beer Buyer seemed to stop working, so out of curiosity i decided to try and make one myself for fun, and all of it seems to be working aside getting the Bartender NPC instead of closest NPC, which is usually the Bartender anyways but sometimes the other NPCS walk behind the bar and mess it up. I tried using npc.equals("Bartender") but it didnt work.
     

    Edited by dacs123
    Link to comment
    Share on other sites

    holy moly, thaaaaanks!!!!  :D  :D  :D

    Also if you want to start it logged out and have the exp tracker work you can try something like this:

    private boolean firstlog = true;
    
    public void onLoop() {
        if(firstlog) {
            getSkillTracker().start();
            firstlog = false;
        }
        //REST OF YOUR CODE HERE
        return 100;
    }
    
    Link to comment
    Share on other sites

    Really really loved this! thanks a billion. even with my minimal knowledge this helped me pick up the general idea.

     

    John's Beer Buyer seemed to stop working, so out of curiosity i decided to try and make one myself for fun, and all of it seems to be working aside getting the Bartender NPC instead of closest NPC, which is usually the Bartender anyways but sometimes the other NPCS walk behind the bar and mess it up. I tried using npc.equals("Bartender") but it didnt work.

     

    You'd need to do:

    NPC bartender = getNpcs().closest("Bartender");
    

    OR

    NPC bartender = getNpcs().closest(npc -> npc != null && npc.getName().equals("Bartender"));
    

    the .equals operator would be checking the object itself, and the NPC (object) is not equal to the string "Bartender" (object).

    Edited by Computor
    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now
    ×
    ×
    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.