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.

Interface object's getMessage() returns %1 instead of number

Featured Replies

Right, so I've been trying to parse the number out of the Barrows killcount. By creating a new RS2InterfaceChild and calling getMessage() from it, I get a return value of "Kill Count : %1" regardless of the number, which leads me to believe that %1 is a placeholder. How, then, can I get the actual number, instead of the placeholder?

I mean if it's the fact that the % and your trying to get just the number. Get message is a string you could use replace("%","")and it will just turn into numbers

It's prolly stored in your player variables (ie. configs).

 

it is

 

Edit: if you are writing a barrows script -> tackle the tunnels first ;)

Edited by Botrepreneur

I mean if it's the fact that the % and your trying to get just the number. Get message is a string you could use replace("%","")and it will just turn into numbers

This. It must be a setting.

it is

 

Edit: if you are writing a barrows script -> tackle the tunnels first wink.png

 

yeah, i swear they are dynamic :P

  • Author

It's prolly stored in your player variables (ie. configs).

 

 

Okay, I'll look around the configs class for it, thanks. 

 

feel free to add anything else about obtaining the number if you know it guys tongue.png

 

 

Also, the % character isn't the problem, it's the %1, which is a placeholder for a variable, and for some reason the placeholder is returned instead of the value of the variable.

 

 

 

Edit: I'm poking through configs, but maybe someone can answer this for me: how exactly do I find a variable that I'm looking for in configs?

Edited by adc

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.