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
  • Try asking for help in the chatbox
  • How do I make it so the bot avoids climbing the closest ladder?


    krypt1c
     Share

    Recommended Posts

            } else if(startScript == true && gui.getNpcType().equals("Hill Giant") && gui.getBoneType().equals("None")) {
                //Calls the hillGiantNPC() method
                hillGiantNPC();
                if(hillGiantLocation.contains(getLocalPlayer())) {
                    GameObject ladder = GameObjects.closest(gameObject -> gameObject != null && gameObject.getName().equals("Ladder"));
                    if(hillGiantLocation.contains(ladder)) {
                        !ladder.interact("Climb-up");
                    }
                }
            }

    I'm trying to make a combat trainer that trains on Hill Giants, in their Area there is a ladder that leads to a locked door that the player can not unlock. 
    Can somebody please guide me on how do I make it so the bot ignores the ladder rather than climbing it up?

    Thanks in advance!

    Edited by krypt1c
    Link to comment
    Share on other sites

    2 hours ago, CodeNinja said:

    you shouldnt even be trying to interact with the ladder if you dont need to use it...

    I don't need to use it, but when the user wants to train the bot on a barbarian, the bot automatically uses the ladder to get to the barbarian Area

    Edited by krypt1c
    Link to comment
    Share on other sites

    that is because you are probably using the web walker somewhere and there is a link to use the ladder/door.  You will need to make custom paths or override the web walker

    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
     Share

    ×
    ×
    • 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.