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
  • Interacting with multiple gameObjects


    BurnerBot

    Recommended Posts

    I'm trying to light both Incense burners in Player Owned House, an am stuck on how to select the furthest burner from me, since getClosest() only comes up with the nearest one.

    I was thinking of doing 

     

    List<GameObject> burners = getGameObjects().all("Incense burner");

     

    to select all of the burners, but I don't know how to interact with them one at a time.

     

     

    [RESOLVED]

     

    List<GameObject> burners = getGameObjects().all("Incense burner");

     

    burners.get(0).interactForceRight("Re-light");

    burners.get(1).interactForceRight("Re-light")

     

    works perfectly, just in case anyone has this problem in the future.

    Link to comment
    Share on other sites

    I don't have an account that has an altar to light, but you could probably have a filter that checks for the game object that has the name "Incense burner" and has the option "Re-light". 

    Link to comment
    Share on other sites


    GameObject burner = aS.getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().equals("Incense burner"));
                 if (burner.interact("Re-light")) {
    //add sleep until
                 }
    Link to comment
    Share on other sites

    GameObject burner = aS.getGameObjects().closest(gameObject -> gameObject != null && gameObject.getName().equals("Incense burner"));
                 if (burner.interact("Re-light")) {
                        //add sleep until   
                 }

     

    wont work

    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.