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.

Easiest way to store data

Featured Replies

I have a list of items with their buy limits. My question is, what's the "best" way to store this data for scripts?

I can think of options myself, but not sure if those are the best / simplest. 

if it was myself, probably MySQL then you could grab it from anywhere with a PHP script? I'm not advanced though.

4 minutes ago, The Undefeated said:

I have a list of items with their buy limits. My question is, what's the "best" way to store this data for scripts?

I can think of options myself, but not sure if those are the best / simplest. 

Just store it in a .txt file, with item_name:buy_limit on each line. If you need more data than just buy limit for each item, then store as JSON or something.

5 minutes ago, Explv said:

Just store it in a .txt file, with item_name:buy_limit on each line. If you need more data than just buy limit for each item, then store as JSON or something.

json for days bruh! especially if intermixing with a webserver

3 minutes ago, dcl1998 said:

.. how would u not know this lol

 

6 minutes ago, Qubit said:

how are you scripter 2 and don't know this..

how are you a human if you don't know how to read you un-educated prat , read what he said.

  • Author
6 minutes ago, Qubit said:

how are you scripter 2 and don't know this..

 

6 minutes ago, dcl1998 said:

.. how would u not know this lol

Can you read?

I can think of options myself, but not sure if those are the best / simplest. 

 

 

25 minutes ago, Explv said:

Just store it in a .txt file, with item_name:buy_limit on each line. If you need more data than just buy limit for each item, then store as JSON or something.

This sounded like the most viable option for me too. JSON is kinda unnecessary for now. (And still have get some better JSON knowledge :doge:

3 hours ago, PulseImpulse said:

 

how are you a human if you don't know how to read you un-educated prat , read what he said.

wow im uneducated didn't know that. He didn't list any of the options he was thinking of, thus leading me to assume he doesn't know any. He also just said above he doesn't know json, say less.

  • Author
4 minutes ago, Qubit said:

wow im uneducated didn't know that. He didn't list any of the options he was thinking of, thus leading me to assume he doesn't know any. He also just said above he doesn't know json, say less.

You again interpret things wrong. I didn't say I don't know JSON, I say I should get more knowledge of it, that doesn't mean I don't know any of it which is not the case.

 

Yes, JSON takes minutes to pick up. Plus, you would need to download a library to make good use of it in Java I believe. Not sure why you would want to parse through a string and do string operations to get value from x item. 

Serialize hash map would be a one time thing to save the file. Read it each time and instantly get the value from key.

Make life easy for yourself and store them in a HashMap or something. Unless we're talking +20 values, then look into alternative options.

18 hours ago, dreameo said:

Yes, JSON takes minutes to pick up. Plus, you would need to download a library to make good use of it in Java I believe. Not sure why you would want to parse through a string and do string operations to get value from x item. 

Serialize hash map would be a one time thing to save the file. Read it each time and instantly get the value from key.

This is a weird suggestion

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.