Jump to content
View in the app

A better way to browse. Learn more.

OSBot :: 2007 OSRS Botting

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Trying to exclude one fishing spot

Featured Replies

I have a fishing script but one spot cant be accessed there is a npc sitting there. I want to be able to remove that one tile or spot so the bot doesn't find it and click on it forever. there are 4 spots in the area i want to use the other 3 only. How would i do this? im retarded when it comes to programming so please bare with me.

If the fishing spot you don't want the script to click on has static coords, you could use that.

Edited by JARNQ

  • Author
11 minutes ago, JARNQ said:

If the fishing spot you don't want the script to click on has static coords, you could use that.

how can i check this?

27 minutes ago, yibster2009 said:

how can i check this?

exclude the fishing spot if it is on that tile. Use filters. 

Is it that fishing spot which sits on an awkward corner in the Fisher Realm? :)

You're probably trying to exclude the one in lumbridge?

It'd help if you could tell us where the fishing spot is but you could try using a filter to exclude it with getMap().canReach(). So when you're getting the fishing spots do:

NPC fishingSpot = getNpcs().closest(x -> x.getId() == fishingSpotID && getMap().canReach(x))

Edited by d0zza

On 11/08/2017 at 4:26 AM, d0zza said:

It'd help if you could tell us where the fishing spot is but you could try using a filter to exclude it with getMap().canReach(). So when you're getting the fishing spots do:

NPC fishingSpot = getNpcs().closest(x -> x.getId() == fishingSpotID && getMap().canReach(x))

  • Filtering by IDs is bad unless you dynamically retrieve those IDs and store them on each run. Because otherwise, a RuneScape update will change those IDs breaking your script.
  • Running #canReach each is bad practice. If there's only one position you need to filter for, store that position as a constant and check against it. Running path-finding algorithm to exclude one fishing spot would be unnecessarily process intensive. Alternatively, you could write up a small tile-flag checker around the north, east, south, and west tiles of the fishing spot to determine whether it's a tile that can your player can stand on. That wouldn't be as bad and would be more applicable. However, be sure to store the results so you, so you don't keep asking the same questions you already know the answer to.

Edited by liverare

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.