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.

Get hexadecimal value of a config

Featured Replies

Hey,

For a private nmz script I'm having the issue to check wether the player already has a dream bought or not. It's the config id 1058 that changes but the value changes. Suppose you buy a dream and the config changes to a number, then you cancel the dream and the config changes again. This would work but the problem is that when you enter the dream and exit it, the configs from before are not the same anymore when having or not having a dream.

I figured out that the hexadecimal value can be used to compare that, since it's always the same two values.

How can I get the hexadecimal value of a config?

Hexadecimal values:

https://gyazo.com/9d690c6998f935b08d672f0adc42a167

Thanks a lot for your time! :)

Edited by _Ace_

  • Author

Why aren't you working with the decimal value?

What do you mean?

What do you mean?

In config debugger you have 3 big buttons for hexadecimal, decimal and binary display. The hexadecimal one is completely useless because there is no case in runescape history where information is stored on nibbles but quite often on bits (hence we sometimes use binary values for example when I wrote Demon Slayer the incantation is written in the quest config). The internal representation of numbers is binary in 2's complement but if you write Ah, 10 or 1010b and compare them with each other you should always get an equality because regardless of base, they have the same internal representation.

  • Author

In config debugger you have 3 big buttons for hexadecimal, decimal and binary display. The hexadecimal one is completely useless because there is no case in runescape history where information is stored on nibbles but quite often on bits (hence we sometimes use binary values for example when I wrote Demon Slayer the incantation is written in the quest config). The internal representation of numbers is binary in 2's complement but if you write Ah, 10 or 1010b and compare them with each other you should always get an equality because regardless of base, they have the same internal representation.

Thanks for the detailled information! I've never messed to much with it, how would I go about to apply this to my case? Your help is highly appreciated :)

Thanks for the detailled information! I've never messed to much with it, how would I go about to apply this to my case? Your help is highly appreciated smile.png

Click on decimal display. Get the config values

Format:  [CONFIG] : [VALUE] is displayed as you play.

if (script.configs.get(CONFIG) == VALUE1) {
    // in dream
} else if (scripts.config.get(CONFIG) == VALUE2) {
    // not in dream
}
  • Author

Click on decimal display. Get the config values

Format: [CONFIG] : [VALUE] is displayed as you play.

if (script.configs.get(CONFIG) == VALUE1) {    // in dream} else if (scripts.config.get(CONFIG) == VALUE2) {    // not in dream}
I tried this, but the problem is, as I mentioned above, that those two values always change when you get out of a dream and buy one again

When you enter the lobby, there is an interface that appears. I used this to detect if you are in a dream or not. I found that the setting was too unreliable because would increment after each game or something like that. So it wasn't as simple as just doing if(setting == 12345)

Edited by Diclonius

  • Author

When you enter the lobby, there is an interface that appears. I used this to detect if you are in a dream or not.

The "Rumble Party" one? I tried that, but sometimes it returned true even if the interface was null. And you'd always have to enter the lobby to see that :/
  • Author

doesn't matetr if you use a hex, decimal or binary ... the value still stays the same.

It's just another way of representing a number.

bit shifting and bit wise operators are the way to go if you wanna use configs :)

Khaleesi

I found a solution thanks :)

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.