dumbass 0 Share 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 Link to comment Share on other sites More sharing options...
Nuclear Nezz 2040 Share Posted October 25, 2019 You can override the priority method, as stated. Link to comment Share on other sites More sharing options...
dumbass 0 Author Share Posted October 29, 2019 tnx dude, it worked Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.