krypt1c 3 Posted January 30, 2021 } 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!
CodeNinja 32 Posted January 30, 2021 you shouldnt even be trying to interact with the ladder if you dont need to use it...
krypt1c 3 Author Posted January 30, 2021 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
CodeNinja 32 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
Recommended Posts
Archived
This topic is now archived and is closed to further replies.