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.

Stesextro

Members
  • Joined

  • Last visited

Everything posted by Stesextro

  1. I am having a problem with my state node combat script. I have nodes for eating, attacking, and looting so far. It attacks perfectly fine, and eats when health goes below a certain %, but after it kills the monster it does not do anything. I am unsure if the problem lies in my attack node, or my node controller. Although I am assuming the problem is with the attack node. (Possibly not returning true? or getting stuck within the execute method). I will attach my Attack node source code to better help with debugging this issue. public class Attack extends Node { Constants c = new Constants(); NPC monster = sA.npcs.closest(" "); public Attack(Script sA) { super(sA); } @Override public String status() { return "Attacking!"; } @Override public boolean validate() throws InterruptedException { //If in area, and health is > 60, and inv contains lobs if (sA.inventory.contains(c.LOBSTER_ID) && sA.myPlayer().getHealth() > 60 && !sA.myPlayer().isUnderAttack()) { return true; } else { return false; } } @Override public boolean execute() throws InterruptedException { if (monster != null && monster.getHealth() > 0) { if (monster.isVisible()) { sA.camera.toEntity(monster); monster.interact("Attack"); sA.sleep(sA.random(1000, 3000)); } if (sA.myPlayer().isUnderAttack()) { return true; } } return false; } } Replaced the monster I am fighting with "monster", in order to keep some form of secrecy ;)

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.