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.

Interacting with the settings menu

Featured Replies

Hey everyone,

 

I'm looking for information regarding interacting with the settings menu. There's some stuff I'd like to change when my bot first initializes but I can't find much information on it.

For context, I mean this settings menu:

cUiyp16uTMq80SqIcx2YYQ.png

 

Any help would be great. Thank you

19 minutes ago, aylsero said:

Hey everyone,

 

I'm looking for information regarding interacting with the settings menu. There's some stuff I'd like to change when my bot first initializes but I can't find much information on it.

For context, I mean this settings menu:

cUiyp16uTMq80SqIcx2YYQ.png

 

Any help would be great. Thank you

Settings class :)
 

Example:

script.getSettings().setSetting(Settings.AllSettingsTab.DISPLAY, "Hide roofs", true);

 

  • Author

Thank you. Not sure if this works great for me though. It Doesn't seem to be able to navigate the menu properly however if I pause the script it will make the changes?

ZdwKlVPbTriZVM83XCOnhg.png

A clip in action: https://streamable.com/fvp1zt

 

Sometimes it cannot find the settings I've set to change, sometimes it does. Normally it gets stuck at the menu screen after looking at "display"

 

Is it possible to debug the code when it's launched in Osbot? New to Java and IntelliJ as I'm a C# programmer.

 

Thank you

1 hour ago, aylsero said:

Thank you. Not sure if this works great for me though. It Doesn't seem to be able to navigate the menu properly however if I pause the script it will make the changes?

ZdwKlVPbTriZVM83XCOnhg.png

A clip in action: https://streamable.com/fvp1zt

 

Sometimes it cannot find the settings I've set to change, sometimes it does. Normally it gets stuck at the menu screen after looking at "display"

 

Is it possible to debug the code when it's launched in Osbot? New to Java and IntelliJ as I'm a C# programmer.

 

Thank you

Well that's because your are doing 5 things in a row ... You should only be doing 1 every loop cycle for a stable result :)
Place some debug logs :D

Edited by Khaleesi

In onloop you can maybe try something like

if (!didSetAttackOptions) {
//settings.setSetting(blahblah)

didSetAttackOptions = true;

}
 

Just be careful try not to put everything in onStart, and always account for the worst case scenario e.g. dialogue is open, which doesn’t let you open settings tab. I personally try getWidgets().closeOpenInterface(); before even touching settings, and in some cases I walk to my current tile just to cancel anything including selected items etc. Maybe am just paranoid :doge: 

  • Author
19 minutes ago, Czar said:

In onloop you can maybe try something like

if (!didSetAttackOptions) {
//settings.setSetting(blahblah)

didSetAttackOptions = true;

}
 

Just be careful try not to put everything in onStart, and always account for the worst case scenario e.g. dialogue is open, which doesn’t let you open settings tab. I personally try getWidgets().closeOpenInterface(); before even touching settings, and in some cases I walk to my current tile just to cancel anything including selected items etc. Maybe am just paranoid :doge: 

This is taking longer than I'd like to admit...

 

This is what I currently have:

RNBgLXVeToO-mf-NB_TUTg.png

My client still seems to get stuck on setWorldSwitcherConfirmation. It selects the Warnings tab, but doesn't scroll or select the setting to change. It's just stuck there.

Streamable link: https://streamable.com/w6x6s8

As Khal said, it should be done every loop. Since this is stuck in place, it can't be a timeout issue right?

Edited by aylsero

  • Author

Ahh man.... It was because I had "World switcher confirmation" when it should have been "World Switcher confirmation". The lowercase s on switcher fucked it.

 

I've been on this for about 2 hours.

😭😭😭😭

 

I don't think you need to put it in onloop. But you do need to space out the setting changes as they cannot all resolve in one pass.
Have you tried doing one then sleeping?
 

setHideRoofs()
sleep(1000)
setWorldSwitch()
sleep(1000)
...


Putting them all in onloop means those conditions need to be checked over the script's run session to only run once, minimal impact sure but avoidable nonetheless.  

  • Author
2 hours ago, yfoo said:

I don't think you need to put it in onloop. But you do need to space out the setting changes as they cannot all resolve in one pass.
Have you tried doing one then sleeping?

setHideRoofs()
sleep(1000)
setWorldSwitch()
sleep(1000)
...


Putting them all in onloop means those conditions need to be checked over the script's run session to only run once, minimal impact sure but avoidable nonetheless.  

I did do that yes but it didn't work at the time as my grammar was wrong.

31m7d9aDSoipxS0m7Ei7TQ.png

It probably would work, however I've already got it implemented now.

Thank you regardless though

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.