[ASK] Covert MAP (X,Y) Coordinates to World (X,Y,Z) Coordinates 2D to 3D menu

User Tag List

Results 1 to 8 of 8
  1. #1
    broly7's Avatar Banned
    Reputation
    50
    Join Date
    Oct 2009
    Posts
    98
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [ASK] Covert MAP (X,Y) Coordinates to World (X,Y,Z) Coordinates 2D to 3D

    Hello community, since i've deep researched inside the forum and i couldn't find the function(s) i'm currently looking for, i have to ask for these functions.

    I'm in party with my friend, and my aim is to teleport (do whatever) to his position.
    So that i use this LUA function: GetPlayerMapPosition("party1")

    And it returns me: 0.47841548919678 0.150799036026
    As X= 47.8 and Y= 15.1

    Now i want to convert both X & Y MAP coords, into X & Y World(3D) coords.

    Edit----> Getting them from memory: X = 1276.7667236328, Y = -4492.1215820313

    But i can't use memory read, when my partner is away mor ethan 100 yards. (So, out of my client range sight)

    What operations should i use then?
    Last edited by broly7; 10-22-2012 at 05:39 AM.

    [ASK] Covert MAP (X,Y) Coordinates to World (X,Y,Z) Coordinates 2D to 3D
  2. #2
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow.. I'm used to people not bothering to search before posting, but seriously? http://www.ownedcore.com/forums/worl...ordinates.html (Zones and coordinates --> World to Zone coordinates) was the top thread before you made this one.

  3. #3
    broly7's Avatar Banned
    Reputation
    50
    Join Date
    Oct 2009
    Posts
    98
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    That's because i dont get where has he got those xx yy, 1,2 whatever. And because every freaking thread is talking about 3D to 2D, while i actually just want From 2D to 3D.

  4. #4
    hamburger12's Avatar Contributor CoreCoins Purchaser
    Reputation
    87
    Join Date
    Jan 2010
    Posts
    297
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok here you go:

    the map X and Y goes from 0 .. 1.

    in the WorldMapArea.dbc file you got all zones where it starts and where it ends.

    Now you just have to calc the percentage and you are fine :-)

  5. #5
    _Mike's Avatar Contributor
    Reputation
    310
    Join Date
    Apr 2008
    Posts
    531
    Thanks G/R
    0/2
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by broly7 View Post
    That's because i dont get where has he got those xx yy, 1,2 whatever. And because every freaking thread is talking about 3D to 2D, while i actually just want From 2D to 3D.
    Just reorder the formulas and you'll get the numbers you want. This is grade school level math.

  6. #6
    broly7's Avatar Banned
    Reputation
    50
    Join Date
    Oct 2009
    Posts
    98
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by hamburger12 View Post
    Ok here you go:

    the map X and Y goes from 0 .. 1.

    in the WorldMapArea.dbc file you got all zones where it starts and where it ends.

    Now you just have to calc the percentage and you are fine :-)
    Thank you

    And my last question. Is there a function to get continent coords, as instead of only zone coordinates?
    Last edited by broly7; 10-23-2012 at 01:55 AM.

  7. #7
    xalcon's Avatar Contributor ふたなり
    Authenticator enabled
    Reputation
    198
    Join Date
    Oct 2008
    Posts
    291
    Thanks G/R
    20/58
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by broly7 View Post
    Thank you
    And my last question. Is there a function to get continent coords, as instead of only zone coordinates?
    ehm... what? o.O
    Your question doesn't make sense. The coordinates you read from memory are actually the continent coords. There are no zone coords (aside from those ZoneMap based ones you're getting from lua)
    "Threads should always commit suicide - they should never be murdered" - DirectX SDK

  8. #8
    broly7's Avatar Banned
    Reputation
    50
    Join Date
    Oct 2009
    Posts
    98
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are two packets with Opcodes:
    SMSG_PARTY_MEMBER_STATS
    SMSG_PARTY_MEMBER_STATS_FULL
    That give me the WORLD coordinates of my party memebers with the structure:
    offset(5) -> UnitGUID
    WORD - offset(13) -> X example (1435)
    WORD - offset(15) -> Y example (-3846)

    DO you know something regarding to these memory values?
    I'd like to read them from memory, and they are real, because i've checked them out with my CHeat Engine, so somewhere they are saved.

Similar Threads

  1. About GM command( move coordinate and explore world map)
    By twinkleken in forum WoW EMU Questions & Requests
    Replies: 4
    Last Post: 12-26-2008, 06:23 AM
  2. World Map / Weather
    By Puff in forum WoW ME Questions and Requests
    Replies: 7
    Last Post: 08-05-2007, 02:27 AM
  3. ADD- ON Map Coordinates
    By GODz in forum World of Warcraft General
    Replies: 2
    Last Post: 08-01-2007, 09:54 AM
  4. Interactive Map Coordinates for 1-70?
    By frozenlake in forum World of Warcraft General
    Replies: 0
    Last Post: 03-29-2007, 12:08 PM
  5. world of warcraft map viewer???
    By ShortButStrong in forum World of Warcraft General
    Replies: 1
    Last Post: 10-28-2006, 09:22 PM
All times are GMT -5. The time now is 01:14 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2025 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Google Authenticator verification provided by Two-Factor Authentication (Free) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search