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
  • Game client size on Tutorial Island


    johnycoool
     Share

    Recommended Posts

    When I log into a new account screen size is always set to resizable and because of it my script can't click on the Gielinor Guide . I came with 2 solutions:

    - play manually until options are available,

    - log into a account with available options, change screen size to static, and come back to the first account,

    Is there a consistent way to make the bot click on the Gielinor Guide on resizable mode?

    Link to comment
    Share on other sites

    1 hour ago, Hashtag said:

    #1Questing rotates the camera all the way up and clicks a red pixel.

    That is a good idea but can you tell me how to get pixel color? getColorPicker().getColorAt() doesn't work for me.

    EDIT: Ok, nevermind. I was testing getColorPicker().getColorAt(getMouse.getX(), getMouse.getY()) manually and it always returned color of my cursor :D

    Edited by johnycoool
    Link to comment
    Share on other sites

    I'm not sure where, but there should be a snippet Nezz released somewhere regarding his temporary "fix" for that issue.  Look around tutorials/guides, maybe the search bar.  Good luck with this!

    Would've been amazing for the client to simply support all zooms :(

    Link to comment
    Share on other sites

    @johnycoool, you can loop through the viewport pixels and use that method to get individual pixel colors. I don't have it check for a specific red rgb value. Instead, I check if a found color is within certain threshold from my set red color. Because this found pixel is most likely at the edge of the NPC model's head, you should hop your mouse to that said pixel. Otherwise it would miss when the NPC moves.

    If you don't find this solution as something you'd use, you can check Nezz's post about the same issue.

    Link to comment
    Share on other sites

    Also, yeah, it'd be nice if the client supported resizable mode and zooming. However, this quote explains it.

    On 11/25/2018 at 11:35 PM, Nuclear Nezz said:

    It won't be done in db2, most likely.

    DB3 already has the math for zoom and resizable done, it just doesn't work with how we have models set up in db2.

     

    Link to comment
    Share on other sites

    I have had also success usin Nezz's method as mentioned by Hashtag but instead of pointing the camrea at a red pixel i point it directly at the guide using:

    getCamera().mouseRotateToEntity(guide);
    

    I spent a while scratching my head on how to improve on Nezz's method but can't figure out how to account for the zoom and screen sizes. I have had success with always rotating to face the guide, the accuracy is good as long as the NPC is central, the further away the NPC is from the centre the more inaccurate Nezz's method is.

    Link to comment
    Share on other sites

    The correct way to do it is to disable the random solver and offset the x and y coordinates until you're able to switch to fixed. I won't tell you what they are but that's enough information to find out if you're determined to figure it out.

    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
     Share

    ×
    ×
    • 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.