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.

why paranoid

Members
  • Joined

  • Last visited

  1. Hello, I'm new to osrs scripting and having trouble getting a simple pray pot drinker to work. Here is a snippet: public final int onLoop() throws InterruptedException { // drinks potion when prayer falls under 10. if (getSkills().getDynamic(Skill.PRAYER) < 10){ drinkPotion(); } return 0; } public void drinkPotion(){ // if slot contains prayer pot, it is drank and loop is exited. for (int i = 0; i <= 28; i++) { if (getInventory().getItemInSlot(i).nameContains("Prayer potion(4)", "Prayer potion(3)", "Prayer potion(2)", "Prayer potion(1)")) { getInventory().interact(i, "Drink"); break; } } } Program works perfectly without the conditional that prayer be under 10. With it, once the conditional is met, the client (not the game) freezes. Any help would be appreciated, thanks. EDIT: was a simple counting from zero error. (should be <=27)

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.