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.

Project First Script! -Help is always welcome!-

Featured Replies

I like the paint.

  • Author

I like the paint.

 

 

mek me paint pls

 

OT: Looks good man!

 

Aha thanks both of ya =P

 

     - Does not stop fishing if the fishing spot turns into a whirlpool - how do I detect it is a whirlpool? 

 

Use getFacingID to detect if you're interacting with fishing spot. When false interact with fishing spot, then it should automatically find new fishing spot, if interacting with whirlpool. Nice paint by the way.

  • Author

Use getFacingID to detect if you're interacting with fishing spot. When false interact with fishing spot, then it should automatically find new fishing spot, if interacting with whirlpool. Nice paint by the way.

 

Thanks just got home not long ago ill have a basha t it now. and thanks alot =)

- Randomly stops fishing, will be working fine for like 20mins but then stops working. also when a whirlpool comes it will stop fishing it but then fail to resume. pfft lol

 

You can create a method, public void checkAvailableSpots() which will constantly check whether there are available spots to fish if your player is in the particular fishing area(Presuming you defined an area, FISHING_AREA) and put that method in your loop, put an if statement to make it trigger only when the player is not animating, !myPlayer().isAnimating and is in the FISHING_AREA. If there's a small time gap whilst fishing where the animation goes from the fishing animation back to -1(No animation) then simply put a sleep timer in the method like so:

sleep:{
			Timer timer = new Timer(0);
			while(timer.getElapsed() < 2000L){
				if(!client.getInventory().contains(fishID)){
					break sleep;
				}
			        else if(myPlayer().isAnimating()){
					timer.reset();
				}
		                else{
				     sleep(40);
		                }
			}
		}

Which will trigger if the player has been idle for 2 or more seconds

  • Author

- Randomly stops fishing, will be working fine for like 20mins but then stops working. also when a whirlpool comes it will stop fishing it but then fail to resume. pfft lol

 

You can create a method, public void checkAvailableSpots() which will constantly check whether there are available spots to fish if your player is in the particular fishing area(Presuming you defined an area, FISHING_AREA) and put that method in your loop, put an if statement to make it trigger only when the player is not animating, !myPlayer().isAnimating and is in the FISHING_AREA. If there's a small time gap whilst fishing where the animation goes from the fishing animation back to -1(No animation) then simply put a sleep timer in the method like so:

sleep:{
			Timer timer = new Timer(0);
			while(timer.getElapsed() < 2000L){
				if(!client.getInventory().contains(fishID)){
					break sleep;
				}
			        else if(myPlayer().isAnimating()){
					timer.reset();
				}
		                else{
				     sleep(40);
		                }
			}
		}

Which will trigger if the player has been idle for 2 or more seconds

 

alot of thanks for the reply =) once i get home i will have a good at implemting it and hopfully should work!. ill get back to you on how it goes =P

 

Guest
This topic is now closed to further replies.

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.