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.

Hello

Featured Replies

Hello,

 

how do I let the script know that the Player is level 3 and if the player is level 3 he should go on, else he wouldnt.

so I need to get the combat level and how do I return that.

 

thank you guys

40 minutes ago, mousbros said:

Hello,

 

how do I let the script know that the Player is level 3 and if the player is level 3 he should go on, else he wouldnt.

so I need to get the combat level and how do I return that.

 

thank you guys

https://osbot.org/api/org/osbot/rs07/api/model/Player.html

 

myPlayer().getCombatLevel();

It's in the API section I linked. Try learning how to read the API docs. A lot of questions can be answer by shifting through them and messing around with wording.

  • Author
6 minutes ago, Gunman said:

https://osbot.org/api/org/osbot/rs07/api/model/Player.html

 


myPlayer().getCombatLevel();

It's in the API section I linked. Try learning how to read the API docs. A lot of questions can be answer by shifting through them and messing around with wording.

I was alread ythere but how can I fully implement that in the script. thats the problem I'm facing. Thank you for the answer tho!

38 minutes ago, mousbros said:

I was alread ythere but how can I fully implement that in the script. thats the problem I'm facing. Thank you for the answer tho!

:???:

It return an int of your player level. If you combat level is 3 it will return 3. So you can do something like this.

if (myPlayer().getCombatLevel() < 20) {
  //get Combat levels or whatever
} else {
  //other code.
}

So as long as your combat level is below 20 it won't go past the first if statement. You probably should learn some Java first. Try reading this a bit.

https://www.programiz.com/java-programming

  • Author
On 2/28/2020 at 7:50 AM, Gunman said:

:???:

It return an int of your player level. If you combat level is 3 it will return 3. So you can do something like this.


if (myPlayer().getCombatLevel() < 20) {
  //get Combat levels or whatever
} else {
  //other code.
}

So as long as your combat level is below 20 it won't go past the first if statement. You probably should learn some Java first. Try reading this a bit.

https://www.programiz.com/java-programming

thanks you, I hate reading im learning trough projects and face problems like this and overcome them.

I wont stop untill I got a fully functional script and hopefully understand JAVA way better. 

thanks for the help

  • Author
19 hours ago, mousbros said:

thanks you, I hate reading im learning trough projects and face problems like this and overcome them.

I wont stop untill I got a fully functional script and hopefully understand JAVA way better. 

thanks for the help

 

Edited by mousbros

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.