krypt1c 3 Share Posted January 30, 2021 (edited) } 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 January 30, 2021 by krypt1c Link to comment Share on other sites More sharing options...
CodeNinja 32 Share Posted January 30, 2021 (edited) you shouldnt even be trying to interact with the ladder if you dont need to use it... Edited January 30, 2021 by CodeNinja krypt1c 1 Link to comment Share on other sites More sharing options...
krypt1c 3 Author Share Posted January 30, 2021 (edited) 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 January 30, 2021 by krypt1c Link to comment Share on other sites More sharing options...
CodeNinja 32 Share Posted January 30, 2021 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now