Jump to content
Frequently Asked Questions
  • Are you not able to open the client? Try following our getting started guide
  • Still not working? Try downloading and running JarFix
  • Help! My bot doesn't do anything! Enable fresh start in client settings and restart the client
  • How to purchase with PayPal/OSRS/Crypto gold? You can purchase vouchers from other users
  • Try asking for help in the chatbox
  • isOnScreen for non-rendered entity


    Recommended Posts

    So, let's say i'm mining copper core and standing some distance from it. If I zoom all the way out, such that the copper tile *would* be on the screen, but the game hasn't loaded that area, isOnScreen returns true.


    I was using the isOnScreen condition to determine if i should to move my cursor to that rock and left click, but if you do that when it's not loaded in, nothing happens. So my bot ends up sitting there hoving over something.


    Naturally I can work around it by keeping the zoom in or making sure i'm within a certain distance. But I was wondering if there's a more robust way to know if the rock is both on screen and loaded in and can be interacted with.

    Link to comment
    Share on other sites

    By not loaded in, do you mean some rocks outside of your current region are being picked up? You might want to filter your potential rocks with a distance() check :) 

    Link to comment
    Share on other sites

    Create an account or sign in to comment

    You need to be a member in order to leave a comment

    Create an account

    Sign up for a new account in our community. It's easy!

    Register a new account

    Sign in

    Already have an account? Sign in here.

    Sign In Now

    • Create New...

    Important Information

    We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.