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
  • How do I make it so the bot avoids climbing the closest ladder?


    krypt1c

    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!

    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

    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

    Archived

    This topic is now archived and is closed to further replies.

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