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
  • Coordinates in essence mine change on world hop.


    Runecrafter

    Recommended Posts

    Hey there,

     

    I am trying to detect if I am in the essence mine, so I can start mining essence. so I tried setting an area but the coordinates change everytime I switch worlds.

    How should I check if I am in the area, or how to handle something like this, I have included some screenshots where u can see that player position is different in the same position.

     

     

    Thanks in advance.

     

     

    Coords.png

    Link to comment
    Share on other sites

    • Runecrafter changed the title to Coordinates in essence mine change on world hop.

    Hey, one way you could do is by checking if a certain gameobject is found:

    @Override
    public int onLoop() {
    	GameObject runeEssence = GameObjects.closest("Rune Essence");
    	if (runeEssence != null) {
    		// I am at the essence mining area
    		if (!Inventory.isFull()) {
    			// mine
    		} else {
    			// leave
    		}
    	} else {
    		// I am not at the area
    	}
    	return 0;
    }

     

    Link to comment
    Share on other sites

    Thanks for the response, yea that will work. I just wanted to know if there is a way to make sure player is in  the essence mine, but it seems like there is no way with setting area's atleast. As its determined to change. 

    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.