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.

Requesting feedback on my first major script

Featured Replies

This is my first major script and I feel like I'm being a little ambitious but I would really like some feedback on if there are some things that I should/shouldn't be doing.

This is my first time using java, and a first project other than tutorials using object orientation.

As a side, just want to say thanks Explv. Your tutorial was an awesome introduction :)

FishingData.java

FishingHandle.java

Handler.java

Main.java

Banking.java

You can do quite a lot more with enumerators in Java than that:

import org.osbot.rs07.api.map.Area;

public enum FishingData2 {

	SHRIMP(new Area(new int[][] {
		{ 3087, 3226 }, { 3085, 3228 },
		{ 3085, 3231 }, { 3085, 3232 },
		{ 3083, 3235 }, { 3085, 3235 },
		{ 3088, 3232 }, { 3089, 3227 }
		}), new String[] {"Small fishing net"}, new String[] {"Net", "Bait"}),
	
	SARDINE(new Area(new int[][]{
		{ 3087, 3226 }, { 3085, 3228 },
		{ 3085, 3231 }, { 3085, 3232 },
		{ 3083, 3235 }, { 3085, 3235 },
		{ 3088, 3232 }, { 3089, 3227 }
		}), new String[] {"Fishing rod", "Fishing bait"}, new String[] {"Bait", "Net"}),
	;
	
	private final Area fishingZone;
	private final String[] equipment;
	private final String[] npcOptions;
	
	private FishingData2(Area fishingZone, String[] equipment, String[] npcOptions) {
		this.fishingZone = fishingZone;
		this.equipment = equipment;
		this.npcOptions = npcOptions;
	}
	
	public Area getFishingZone() {
		return fishingZone;
	}
	
	public String[] getEquipment() {
		return equipment;
	}
	
	public String[] getNpcOptions() {
		return npcOptions;
	}
}

Then you can do:

FishingData2.SARDINE.getEquipment()

 

Also, perhaps read my most recent tutorial. It might help!

 

Edited by liverare

  • Author

Ah thank you! Didn't know you could do that. I might have to give it a shot!

Had a quick read of your tutorial, looks great! I'll have a more in depth read shortly.

Thanks for taking the time to have a look at my script, I appreciate it!

 

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.