Thread: map base/Regions coords

Results 1 to 7 of 7
  1. #1 map base/Regions coords 
    Registered Member
    Pride's Avatar
    Join Date
    Mar 2008
    Posts
    727
    Thanks given
    0
    Thanks received
    1
    Rep Power
    121
    Is there A way of getting this?
    For example, The base coords of the region?
    I know it's been done in RSBot, So how would we get them in our OWN Client/Server?

    In my ChangeRegion Class, I want to add
    int RegionBaseX
    int RegionBaseY
    int RegionEndX
    int RegionEndY
     

  2. #2  
    Registered Member Hexagon's Avatar
    Join Date
    May 2008
    Posts
    672
    Thanks given
    28
    Thanks received
    18
    Rep Power
    33
    the coords here r same on real rs too
     

  3. #3  
    Registered Member

    Join Date
    May 2009
    Posts
    303
    Thanks given
    0
    Thanks received
    4
    Rep Power
    341
    yes its very easy lol

    int j = (int) (absX / 104);
    j = absX - (j*104);

    first part is needed to get the map region so this gets the X value Y is gotten the same way

    that would return a value between 1-103
    thiefmn6092 has not made any friends yet
     

  4. #4  
    Registered Member
    Pride's Avatar
    Join Date
    Mar 2008
    Posts
    727
    Thanks given
    0
    Thanks received
    1
    Rep Power
    121
    No, See, I mean, The mapBase, Example:
    The start of the loaded map/Region (0,0 with your method), i want them as 3289bla 6897bla
     

  5. #5  
    Registered Member

    Join Date
    May 2009
    Posts
    303
    Thanks given
    0
    Thanks received
    4
    Rep Power
    341
    xcoord / 104 = map region x
    ycoord / 104 = map region y

    that?
    thiefmn6092 has not made any friends yet
     

  6. #6  
    Registered Member
    Pride's Avatar
    Join Date
    Mar 2008
    Posts
    727
    Thanks given
    0
    Thanks received
    1
    Rep Power
    121
    I'm not sure would that work?
    On my region change, I want to add
    int RegionBaseX
    int RegionBaseY
    int RegionEndX
    int RegionEndY
    Now, How would I get those???
    Any Idea?
     

  7. #7  
    Registered Member

    Join Date
    May 2009
    Posts
    303
    Thanks given
    0
    Thanks received
    4
    Rep Power
    341
    depends on what region you want?

    lets say your at 3222, 3222 (lummy) and you want the regionX coords you would do this

    int mapRegionStartX = (int) (3222 / 104);
    int mapRegionEndX = mapRegionStartX+103;

    and the y would be the same
    thiefmn6092 has not made any friends yet
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •