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.

Help with data saving

Featured Replies

Is there any way to use IO when scripting to store information to files? Or any way to save data? Please help, I would like to be able to save data-points for initializing my bots. Thank you.

  • Author

Just to be clear here, are you talking about using java and writing files to save data while the scripts aren't running? Because I'm trying to have my code be able to save points, it's an easy way to determine progress points/load past data. But if it's not possible, I'll simply accept it and do what's best until then... I'm sure there must be sort of way, any java programmers out here? 

I'm not really sure what you're asking in the op but you can use Writer and Reader to write and read to files respectively.

Then you can use this information to select where to start the script from. For example write the number 5 to a file, then when you run the script again read that file and you know to start from point 5.

6 hours ago, Doflamingo said:

Just to be clear here, are you talking about using java and writing files to save data while the scripts aren't running? Because I'm trying to have my code be able to save points, it's an easy way to determine progress points/load past data. But if it's not possible, I'll simply accept it and do what's best until then... I'm sure there must be sort of way, any java programmers out here? 

Java is a high level language, it doesn't take much to be proficient at it. Your script gets executed, therefore how else would you use the client to read and write files without code caving or function hooking?
 

  • Author
5 hours ago, Alek said:

Java is a high level language, it doesn't take much to be proficient at it. Your script gets executed, therefore how else would you use the client to read and write files without code caving or function hooking?
 

I'm asking if you can save data, your response isn't helping it's just another question.

5 minutes ago, Doflamingo said:

I'm asking if you can save data, your response isn't helping it's just another question.

HeyImJamie answered your question, you can read/write inside of the local OSBot folder. Look up "Script" in the API for the directory method.

  • Author
3 minutes ago, Alek said:

HeyImJamie answered your question, you can read/write inside of the local OSBot folder. Look up "Script" in the API for the directory method.

Thank you, I will certainly look and figure that out. Appreciate the assistance on this one guys, won't lie.

  • Alek locked this topic
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.