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
  • Area Questions


    IcCookies
     Share

    Recommended Posts

    Hello eveyone.

     

    So I know that if you want to create an area you would do

    Area fishArea = new Area(3085, 3233, 3089, 3224, 0);
    

    but what happens if I want different z values? For example, I still want the equation to be true if I'm on the x and y, but with a z value of 1 instead of 0. How would I do that?

    Link to comment
    Share on other sites

    Area fishArea = new Area(3085, 3233, 3089, 3224, 0);

     

    the constructor is

    x1, y1, x2, y2, z

     

    so if you want it on z 1

    Area fishArea = new Area(3085, 3233, 3089, 3224, 1);

    I think he wants a cube , so as long as he in an area that has verticle components?

    Area yourArea = new Area((new Tile(3169, 2976, 0)), (new Tile(3176, 2970, 1)));
    
    Link to comment
    Share on other sites

     

    I think he wants a cube , so as long as he in an area that has verticle components?

    Area yourArea = new Area((new Tile(3169, 2976, 0)), (new Tile(3176, 2970, 1)));
    

    Or he could just use:

    Area(int x1, int y1, int x2, int y2)

    Creates a rectangular area using basic coordinates for any plane.
     
    Dont input the Z and it ignores the plane unless the API is lying to me. :P
    Link to comment
    Share on other sites

     

    Or he could just use:

    Area(int x1, int y1, int x2, int y2)

    Creates a rectangular area using basic coordinates for any plane.
     
    Dont input the Z and it ignores the plane unless the API is lying to me. :P

     

    yeah that should totally work too. Look at all these solutions

    Link to comment
    Share on other sites

     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.