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.

Nodes + Abstract Class issue

Featured Replies

So i've been working on an AIO magic, i've decided to use nodes, now with the abstract class, i've got a boolean execute and a boolean validate.

 

With these two, the validation sends off to the main class whether the sub class that extends the abstract is true, if it is true, it will then execute the code from the execution in that sub class.

 

My question is, for some odd reason, my states, or the switch states, return null, can you not have states outside of the boolean execution? Does it all have to be inside that exeuction?

 

This is the only thing stopping my magic script sad2.png I do a null pointer check and my get states = null so nothing happens, got no idea why.

 

If you'd like to look at a sample of the code and think you have a solution, send me a pm happy.png

 

PS: Cheers to booch for your tutorial man, was great!

Edited by Gilgad

As long as you have a container for your nodes, which is looped though, you should have no problem with NPE's. Your node class makes you able to keep all of your tasks in one list. Makes is easier to manage. So as long as you have a getState in your node class, you should be fine

  • Author

Cheers to Frostbug and nezz, sorted the issue :)

Guest
This topic is now closed to further replies.

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.