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.

OSBot logger

Featured Replies

Hello.

This thing really bugs me. Recently switched from poopbot (lmao it automatically changed to poopbot that's hilarious. heard some rumours about the source code being stolen) to osbot so I'm still tryna learn the ropes.

My script crashes, doing the simplest thing in the tutorials here. And I can't check the logger because it gets stuck, but I am still logged in-game.

If you're wondering what the code is;

final Bank bank = new Bank();

if (bank != null) {
				log("Bank isnt null");
					bank.open();
				} else {
					log ("Bank is null");
					
			}

Tried doing it both this way, and this way;

			  NPC banker = npcs.closest("Banker"); 
			  if (banker != null) {
			  banker.interact(("Bank")); 
			  sleepR(); 
			  bank.depositAll(); 
			  sleepR();
			  

Not sure why this doesn't work. But my main issue is the logger. I need to see what causes the crashes so.. Any ideas? Does it get logged anywhere else where I can check?

 f919faea1f46f550279ad9d9a1248528.thumb.png.f9e8d8e40a3380c2db029f6fd025fa4b.png

Edited by nills3

7 minutes ago, nills3 said:

Hello.

This thing really bugs me. Recently switched from poopbot (lmao it automatically changed to poopbot that's hilarious. heard some rumours about the source code being stolen) to osbot so I'm still tryna learn the ropes.

My script crashes, doing the simplest thing in the tutorials here. And I can't check the logger because it gets stuck, but I am still logged in-game.

If you're wondering what the code is;


final Bank bank = new Bank();

if (bank != null) {
				log("Bank isnt null");
					bank.open();
				} else {
					log ("Bank is null");
					
			}

Tried doing it both this way, and this way;


			  NPC banker = npcs.closest("Banker"); 
			  if (banker != null) {
			  banker.interact(("Bank")); 
			  sleepR(); 
			  bank.depositAll(); 
			  sleepR();
			  

Not sure why this doesn't work. But my main issue is the logger. I need to see what causes the crashes so.. Any ideas? Does it get logged anywhere else where I can check?

 f919faea1f46f550279ad9d9a1248528.thumb.png.f9e8d8e40a3380c2db029f6fd025fa4b.png

1. Check if player is in correct area to bank

2. use getBank().open

3. Use conditional sleep to sleep until bank is open

 

42 minutes ago, nills3 said:

Thank you for trying to help.

Remove this:
 

final Bank bank = new Bank()


You don't instantiate `Bank`, it's already instantiated for you and provided via the MethodProvider. If you are in your main Script class, you can access it using getBank()

Have a read through my tutorial if you haven't already, it might help you out a bit:

https://osbot.org/forum/topic/115124-explvs-scripting-101/

Edited by Explv

to add what everyone else said, open logger before you start the script so you can see what error your getting :)

edit: i look at the entire post first.

Edited by FuryShark

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.