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.

Detecting if a CLI argument is enabled?

Featured Replies

Is there a way to detect if a CLI argument has been enabled such as "-allow norandoms" and if so, how?

Edited by Hayase

Just now, Hayase said:

Is there a way to detect if a CLI argument has been enabled such as "-norandoms" and if so, how?

You can check if the value of getParameters() is not null / the length > 0 if I'm not mistaking

4 minutes ago, Eagle Scripts said:

You can check if the value of getParameters() is not null / the length > 0 if I'm not mistaking

Can confirm that this works, just do a null check on getParameters().

 

He asked specifically for CLI arguments in general, which I don't think scripters can access. The only thing you can grab is script parameters from CLI. In general, all scripts should be fully usable without any specific OSBot settings enabled or disabled.

  • Author
16 minutes ago, The Undefeated said:

Can confirm that this works, just do a null check on getParameters().

 

Doesn't work for me, attempting, "-allow nointerface" just says "null" for me. I can't sort any arguments from "-allow"

log("Parameters set: " + getParameters());

 

8 minutes ago, Alek said:

He asked specifically for CLI arguments in general, which I don't think scripters can access. The only thing you can grab is script parameters from CLI. In general, all scripts should be fully usable without any specific OSBot settings enabled or disabled.

I was looking for was a way to hop worlds on the logout screen to run away from PKers and the only way to do it is by having norandoms turned off or else the auto login just brings you back in to die, :feels:

32 minutes ago, Hayase said:

Doesn't work for me, attempting, "-allow nointerface" just says "null" for me. I can't sort any arguments from "-allow"


log("Parameters set: " + getParameters());

 

I was looking for was a way to hop worlds on the logout screen to run away from PKers and the only way to do it is by having norandoms turned off or else the auto login just brings you back in to die, :feels:

Well if its not an SDN script you can just tell people to start OSBot with norandoms flag?

  • Author
13 minutes ago, Alek said:

Well if its not an SDN script you can just tell people to start OSBot with norandoms flag?

This is for a future SDN script but maybe if might not be a viable script after all

34 minutes ago, Hayase said:

This is for a future SDN script but maybe if might not be a viable script after all

You can't force users to enable certain settings, the botter is free to decide whatever they want.

8 hours ago, Hayase said:

Doesn't work for me, attempting, "-allow nointerface" just says "null" for me. I can't sort any arguments from "-allow"


log("Parameters set: " + getParameters());

 

I was looking for was a way to hop worlds on the logout screen to run away from PKers and the only way to do it is by having norandoms turned off or else the auto login just brings you back in to die, :feels:

I didn't understand it correctly, my bad. You could also let the bot hop worlds but that takes more time. Don't forget you're required to use script parameters to get the login details and login when using -norandoms.

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.