Jump to content

Stacked npc selection - fishing spots


Translink1

Recommended Posts

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!

Link to comment
Share on other sites

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 by Translink1
Solution
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...