Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • B50: Sever error what happen
      May 22, 2018, 08:23:40 PM
    • The Soul: 10 years later
      May 21, 2018, 05:23:10 PM
    • The Soul: wow people are still here?
      May 21, 2018, 05:19:27 PM
    • Wilkooo: and apologies to the OG forum guys on behalf of that fudgewit dr house that pretty much killed this entire domain
      May 21, 2018, 04:14:28 PM
    • Wilkooo: shoutout to all those that played back in the beginning, all new people that hang around now seem to be pretty braindead
      May 21, 2018, 04:13:54 PM
    • Wilkooo: born sep 2016 - died whenever pink eggs resigned
      May 21, 2018, 04:11:29 PM
    • Wilkooo: Rip moparscape rsps
      May 21, 2018, 04:11:10 PM
    • puta loca: or what section can i ask this
      May 21, 2018, 05:45:08 AM
    • puta loca: does someoen has platinum ps v2 files?
      May 21, 2018, 05:44:59 AM
    • w azza 3: server down??
      May 21, 2018, 05:07:47 AM
    • charmie: rippppppppppppppppppppppppppppppppppppppppppppppp
      May 20, 2018, 09:03:41 PM
    • Tesco Value: eco reset? :o
      May 20, 2018, 08:54:27 PM
    • Tesco Value: aw is server down? :P
      May 20, 2018, 08:54:03 PM
    • mandmgalaxy: is the game down?
      May 20, 2018, 08:05:07 PM
    • bliss death: i believe 95% of the community disliked this change heavily as it came out of nowhere. and the fact you clear ironmen banks as well. terrible change. disappointed.
      May 20, 2018, 06:08:36 PM
    • bliss death: just wondering when the server is gonna be fixed and reverted
      May 20, 2018, 06:07:36 PM
    • Saltyspade10: I'll be back ;)
      May 15, 2018, 04:43:53 PM
    • Nunubuffs:[link]
      May 15, 2018, 12:06:25 PM
    • Nunubuffs: .info god
      May 15, 2018, 12:05:40 PM
    • Nunubuffs: Www.scaperune
      May 15, 2018, 12:05:25 PM

    Author Topic: Barrows coords problem  (Read 625 times)

    0 Members and 1 Guest are viewing this topic.

    Offlinetank nation

    • Member
    • ****
    • Posts: 483
    • Thanks: +0/-0
      • View Profile
    Barrows coords problem
    « on: November 04, 2015, 10:44:25 PM »
    I'm trying to get my interface to show up I have everything set how its suppose to be but im not sure how these coords work cause its acting as if the interface is not in barrows here is the code if someone can explain to me how it works that will help.. ty.

    player.java

    Code: [Select]
    public boolean isInBarrows() {
    if(absX < 3543 && absX > 3584 && absY < 3265 && absY > 3311) {
    return true;
    }
    return false;
    }

    public boolean inPcBoat() {
    return absX >= 2660 && absX <= 2663 && absY >= 2638 && absY <= 2643;
    }

    public boolean inPcGame() {
    return absX >= 2624 && absX <= 2690 && absY >= 2550 && absY <= 2619;
    }
    RS2Ad banner

    OfflineChassy13

    • R.I.P. Jimmy "The Rev" Sullivan.
    • Member
    • ****
    • Posts: 7,779
    • Thanks: +0/-0
      • View Profile
    Re: Barrows coords problem
    « Reply #1 on: November 04, 2015, 10:49:20 PM »
    Your coordinate checks are wrong in isInBarrows().
    Your absX value cannot possibly be less than 3543 and greater than 3584 at the same time. Same with your absY value.

    --------2
    |        |
    |        |
    1-------

    You go from the bottom-left corner to the top-right corner typically, so:

    Code: [Select]
    if (absX >= X_OF_1 && absX <= X_OF_2 && absY >= Y_OF_1 && absY <= Y_OF_2)
    « Last Edit: November 04, 2015, 10:52:05 PM by Chassy13 »
    I'm far more mature than to steal a notebook
    RS2Ad banner

    Offlinetank nation

    • Member
    • ****
    • Posts: 483
    • Thanks: +0/-0
      • View Profile
    Re: Barrows coords problem
    « Reply #2 on: November 05, 2015, 10:01:14 AM »
    Your coordinate checks are wrong in isInBarrows().
    Your absX value cannot possibly be less than 3543 and greater than 3584 at the same time. Same with your absY value.

    --------2
    |        |
    |        |
    1-------

    You go from the bottom-left corner to the top-right corner typically, so:

    Code: [Select]
    if (absX >= X_OF_1 && absX <= X_OF_2 && absY >= Y_OF_1 && absY <= Y_OF_2)

    It seems as if my x postions are okay though there at the exact points you just said? So whats the max and min for y coords? do they need to be 3548-3543 greater than and less than?
    RS2Ad banner

    OfflineSoulxs

    • Member
    • ***
    • Posts: 131
    • Thanks: +0/-0
      • View Profile
    Re: Barrows coords problem
    « Reply #3 on: November 05, 2015, 03:05:23 PM »
    Assuming the coords you want it to be are right, change it to:
    Code: [Select]
    if(absX > 3543 && absX < 3584 && absY > 3265 && absY < 3311)

     

    Copyright © 2017 MoparScape. All rights reserved.
    Powered by SMFPacks SEO Pro Mod |
    SimplePortal 2.3.5 © 2008-2012, SimplePortal