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
  • Hold on right click interact


    quant

    Recommended Posts

    Morning all,

    In a variety of time and movement sensitive actions I'd like to 'pre bake' an interact with right click. For example in an agility context, I may have a reliable and stable location of an obstacle which I would like to interact with in a few ticks, but which will be moving or hard to see during the intermediate time. As a human player, I can right click on the obstacle, and hover over the intended interaction. This means the execution process for that interaction goes from target acquisition, mouse movement, and interaction, down to a single click.

    Is there a way to do this? Ideally I'd take the existing .interact() functionality, and have an analogue like .delayedInteract(), returning an object I could execute, which would then retain the error handling of the .interact() pipeline.

    Many thanks,
    Q

    Link to comment
    Share on other sites

    Your specific suggestion is very interesting, and may be something I look into in the future.

    For now though, you can do something like this:

    if (Mouse.click(objectToHover, true)) { // Second parameter makes it a right click
        Menu.mouseOverAction("Climb-over"); // Replace with your action
        sleepUntil(this::isReadyToInteract, 10000);
        Menu.clickAction("Climb-over");
    }

     

    Link to comment
    Share on other sites

    Archived

    This topic is now archived and is closed to further replies.

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