Skip 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.

Help me with this, please!

Featured Replies

Hi there. I ve got a raw script. but i dont know how to run it. Maybe i need to compile it? Could somebody help me with that?

heres script (prayer potion drinker. i ve just copied it from the forum :D)

public void drinkPotion() throws InterruptedException {
if (containsPotion() == true) {
if (client.getSkills().getCurrentLevel(Skill.PRAYER) <= 12) {
for (int i = 0; i < 4; i++) {
if (client.getInventory().interactWithName(
"Prayer potion(" + i + ")", "Drink")) {
sleep(random(600, 900));
}
}
}
}
}
 
public boolean containsPotion() {
for (int i = 0; i < 4; i++) {
if (client.getInventory().contains("Prayer potion(" + i + ")")) {
return true;
}
}
return false;
}  

 

Hi there. I ve got a raw script. but i dont know how to run it. Maybe i need to compile it? Could somebody help me with that?

heres script (prayer potion drinker. i ve just copied it from the forum biggrin.png)

public void drinkPotion() throws InterruptedException {
if (containsPotion() == true) {
if (client.getSkills().getCurrentLevel(Skill.PRAYER) <= 12) {
for (int i = 0; i < 4; i++) {
if (client.getInventory().interactWithName(
"Prayer potion(" + i + ")", "Drink")) {
sleep(random(600, 900));
}
}
}
}
}
 
public boolean containsPotion() {
for (int i = 0; i < 4; i++) {
if (client.getInventory().contains("Prayer potion(" + i + ")")) {
return true;
}
}
return false;
}  

 

you need to put that into the onLoop of the script skeleton then compile it. But I didn't take the time to go through and see if that actually works.

 

is it hard to learn the OSBOT API?

No, it should only take an afternoon. Learning what you can do with it though takes a lot longer.

I can code in VB, but I'm not sure whether or not it's worth learning, IE I have a basic understanding of code and can understand different functions etc and algorithms juts don't know if it's complicated to learn the API

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

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.