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.

Bot crashes after mysql db interaction

Featured Replies

Ok so i've made this class that interacts with my mysql db and it worx excellent in java. But when i try it out with the osbot script, the client gives me a nullpointerexception which shouldnt be there (cause it worked fine with another non bot script program) and it instanlty crashes. Now that's if i put it in the onLoop(), if I place it in the onStart() the script just stops, it says excited ...

 

This is what I get: http://i.imgur.com/4szNNoY.png

emote32342.png

Am I doing something wrong?

Plz help? 

Edited by dokato

  • Author

why do you want to establish a connection to your sql databse in a runescape script?

 

So that another account could see when that acc is rdy to trade its farm.

It will update some values in the db and based on that the other account can see which acc it should trade when.

I dont see any other way of making that possible without using a remote database. 

So that another account could see when that acc is rdy to trade its farm.

It will update some values in the db and based on that the other account can see which acc it should trade when.

I dont see any other way of making that possible without using a remote database. 

write values to a .txt , booleans or whatever you like, and make the other script check the .txt

 

also if you want to use a databse, don't you need something running 24/7? or pay for hosting?

  • Author

write values to a .txt , booleans or whatever you like, and make the other script check the .txt

 

also if you want to use a databse, don't you need something running 24/7? or pay for hosting?

 

Ye i get your point, but what if you've got multiple remote servers where bots run on?

And it's a free mysql hosting 24/7 thingy, so it's free, i dont need to pay anyhting, accept for the servers ofcourse.  

Ye i get your point, but what if you've got multiple remote servers where bots run on?

And it's a free mysql hosting 24/7 thingy, so it's free, i dont need to pay anyhting, accept for the servers ofcourse.  

i dont know the scenario, but if you have multiple accounts, set the name of the .txt document to the bot's name, so they can use their individual file

  • Author

Post code? What line is the npe

I'll tell you tomorrow, im not on my pc atm

  • Author

i dont know the scenario, but if you have multiple accounts, set the name of the .txt document to the bot's name, so they can use their individual file

 

I think osbot doesnt support the mysql driver thing and that's why i get the erorr.

I'll just let the program run seperately so that it can write the database values into a txt file and then the osbot script will read from that txt file.

That should work i think 

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.