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.

How to scan for GroundDecorations?

Featured Replies

Hello, I'm making a firemaking script, and I'm having a problem with a line of code. I'm checking to see if my location has any GroundDecoration entities on it. If I'm not mistaken, some examples of GroundDecorations are Fire, Flowers, Fern, Small Fern. I don't understand why this code sometimes does, sometimes doesn't detect that the entity on the location is a GroundDecoration. It worked with one Fern, reaching "here3", and for another Fern with the same ID in a different location it didn't work, it only reached "here2". Can anyone help?

                    boolean move = false;
                    if(script.objects.get(script.myPosition().getX(), script.myPosition().getY()) != null)
                    {
                        script.log("here1");
                        for(RS2Object item : script.objects.get(script.myPosition().getX(), script.myPosition().getY()))
                        {
                            script.log("here2");
                            if(item instanceof GroundDecoration)           //Problem Line
                            {
                                script.log("here3");
                                move = true;
                            }
                        }
                    }

  • Author

Okay, the problem was that Ferns and Daisies and such are InteractableObject, not GroundDecoration. I see this got a few views and no replies so hope this helped someone.

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.