dumbass 0 Posted October 24, 2019 So im trying to make a script for collecting hides at Lumbridge dairy farm and banking them in Al Kharid using the toll gate. Using getAStarPathfinder i should be able to give the name of the obstacle and the action which it needs to perform. if you right-click the gate and select "Pay-toll(10gp)" you can pass the gate without entering dialog. m.getWalking().getAStarPathFinder().addObstacle(new PassableObstacle("Gate", "Pay-toll(10gp)" , null, null, null)); My problem is, when running the script the bot never right-clicks the gate to try and select "Pay-toll(10gp)". It just left-clicks it, selecting "Open Gate" and gets stuck in a dialog. I tried adding a sleepUntill() -> (Condition) thing but that didnt work as well. m.getWalking().getAStarPathFinder().addObstacle(new PassableObstacle("Gate", "Pay-toll(10gp)" , null, null, null)); m.sleepUntil(() -> m.getDialogues().inDialogue(), 100000); if (m.getDialogues().inDialogue()) { while (m.getDialogues().inDialogue()) { m.getDialogues().continueDialogue(); m.sleep(600, 1300); I have no clue how to pass this damn gate, pls help me
Recommended Posts
Archived
This topic is now archived and is closed to further replies.