Translink1 Posted December 21, 2018 Share Posted December 21, 2018 Hello, Just wrote my first fishing script and all is working well. However if two or more "Fishing spots" spawn on top of eachother, sometimes the script will right click and select the one "under" the other fishing spot. I use npcs.getClosest("Fishing spot") and *.interact("Use-rod"). I tried using isVisable() and isOnScreen but neither seem to work. I am wondering is there a way to always left click on the top fishing spot as to avoid right clicking on the lower one? Thanks! Quote Link to comment Share on other sites More sharing options...
Juggles Posted December 21, 2018 Share Posted December 21, 2018 Check if the fishing spot has the action you are trying to perform. Quote Link to comment Share on other sites More sharing options...
Translink1 Posted December 21, 2018 Author Share Posted December 21, 2018 (edited) Thanks, but all of the fishing spots have the same action, as it's the fly fishing ones. And closest returns a random one if both are the same distance away, any other ideas? Thanks Solution: use *.interact() without an input parameter (credit to Fruity) Edited December 21, 2018 by Translink1 Solution Quote Link to comment Share on other sites More sharing options...
Czar Posted December 21, 2018 Share Posted December 21, 2018 For fishing, you need to filter the fishing spots by both actions and their order. So make an enum with all fishing spots and their 2 options, then filter respectively Quote Link to comment Share on other sites More sharing options...