Welcome, guest! Please login or register.

    * Shoutbox

    RefreshHistory
    • King Bosnia: Any recommendations to private servers?
      October 18, 2018, 04:47:35 PM
    • FightMexoxo: oi i have the files if anyone whats em
      October 18, 2018, 12:44:42 AM
    • The Wanderer: Whoops
      October 15, 2018, 12:56:18 AM
    • The Wanderer: Making own operating system
      October 15, 2018, 12:56:11 AM
    • Travas: no
      October 07, 2018, 04:03:36 PM
    • Saltyspade10: Server still up and running?
      October 05, 2018, 07:13:41 PM
    • Wesam: Can someone upload moparscape.jar?
      October 05, 2018, 11:43:43 AM
    • Ligoe: yo
      September 30, 2018, 12:48:15 PM
    • Ligoe: how come i can't login the game
      September 30, 2018, 12:48:03 PM
    • fuzzout: Anybody here with experience in using Luna source? I'm looking to develop something, but can't seem to get any of my clients to work with it...
      September 26, 2018, 10:47:27 AM
    • `Discardedx2`: ?
      September 21, 2018, 12:24:09 PM
    • Pookey71: ARE YOU HERE TO RECEIVE MY LIMP PENIS!?
      September 20, 2018, 11:55:24 PM
    • Pookey71: THIS IS DEMOCRACY MANIFESTO
      September 20, 2018, 11:55:07 PM
    • Vasi28: Гранд
      September 03, 2018, 07:06:22 PM
    • Rash: test
      August 30, 2018, 09:09:18 PM
    • Guruu:[link]
      August 30, 2018, 12:04:45 AM
    • Guruu: am i allowed to post links shoutbox?
      August 30, 2018, 12:03:46 AM
    • drubrkletern:[link] feedback wanted
      August 28, 2018, 03:55:17 PM
    • bugz000: Anyone got a link for the old ass silab client and cache.zip? from mopar 3.2 era :) 317
      August 25, 2018, 12:48:15 AM
    • cholland2015: Does anyone know where I can download the old moparscape client/server?
      August 24, 2018, 02:30:51 PM

    Author Topic: Barrows coords problem  (Read 674 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;
    }
    Runescape Gambling

    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
    Runescape Gambling

    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?
    Runescape Gambling

    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