[Help] Object Coords to own "Radar" menu

Shout-Out

User Tag List

Results 1 to 13 of 13
  1. #1
    unbekannt1's Avatar Member
    Reputation
    -6
    Join Date
    Apr 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [Help] Object Coords to own "Radar"

    Hello,
    At first i have to explain a bit. I am reading the x and y coodinates from every object. Then i want to put them in my coordinate system. My system has Max X and Y of 200. The X coordinate of Wow are much bigger like for example 6533.

    My first idea was to divide by 200. Example:

    P1(6000/300) P2(6099/300) after dividing P1(30/1,5) P2(30,495/1,5).
    If i know draw them in my coordsystem they are nearly on the same point.

    So i tried something with scale, but that didn't worked to.

    Somebody has an idea?
    Last edited by unbekannt1; 04-30-2009 at 08:49 AM.

    [Help] Object Coords to own "Radar"
  2. #2
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Use a bigger max value. (There's no reason why you should be limiting it anyway...

  3. #3
    unbekannt1's Avatar Member
    Reputation
    -6
    Join Date
    Apr 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    My monitor is the limit

  4. #4
    1814's Avatar Active Member
    Reputation
    21
    Join Date
    Mar 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    try to calcutate the cords relative to your player ->
    Code:
    x = 100 + (localx - x);
    y = 100 + (localy - y);

  5. #5
    unbekannt1's Avatar Member
    Reputation
    -6
    Join Date
    Apr 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Ok thank you that works good, but how can i draw the player?

  6. #6
    1814's Avatar Active Member
    Reputation
    21
    Join Date
    Mar 2008
    Posts
    67
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    just do the same for the player ?
    Code:
    x = 100 + (localx - localx);
    y = 100 + (localy - localy);
    -> draw the player in the center of your app

  7. #7
    unbekannt1's Avatar Member
    Reputation
    -6
    Join Date
    Apr 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so i just can set x=100 and y = 100 right?

  8. #8
    Shynd's Avatar Contributor
    Reputation
    97
    Join Date
    May 2008
    Posts
    393
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Maybe you should learn mathematical concepts before attempting to apply them.

  9. #9
    unbekannt1's Avatar Member
    Reputation
    -6
    Join Date
    Apr 2009
    Posts
    54
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    x = 100 + (localx - localx);
    y = 100 + (localy - localy);

    in my eyes it is x = 100 and y = 100

  10. #10
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Holy christ you're retarded!

  11. #11
    dante020's Avatar Member
    Reputation
    1
    Join Date
    May 2007
    Posts
    4
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Apoc View Post
    Holy christ you're retarded!
    He IS persistent though...

  12. #12
    kakamunsug's Avatar Member
    Reputation
    -2
    Join Date
    Dec 2008
    Posts
    20
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by unbekannt1 View Post
    My monitor is the limit
    First off you should be good off knowing the maps max coords y/x to calculate a smaller map of 200x200, otherwise you have nothing to make smaller. And by drawing out stuff, you could essentially create one each new object instance for each new item on the map, and then make a class for the object instance which inherits stuff like xPos, yPos and other stuff like that - so that when you need to move the object, you can just do it like this:

    Code:
    objectInstance.xPos = playerX / calculationshere;
    objectInstance.yPos = playerY / calculationshere;
    Alternatively, you could create a vector for the same purpose, which would be the ultimate solution I believe.

    Good luck

  13. #13
    Apoc's Avatar Angry Penguin
    Reputation
    1388
    Join Date
    Jan 2008
    Posts
    2,750
    Thanks G/R
    0/13
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Alight, question answered. Closing this thread. This is just basic math.

Similar Threads

  1. [HELP] Object Animation State
    By unbekannt1 in forum WoW Memory Editing
    Replies: 3
    Last Post: 05-15-2009, 09:19 AM
  2. [Help] Object structure enumeration
    By corderoy in forum WoW Memory Editing
    Replies: 4
    Last Post: 10-12-2008, 04:58 PM
  3. [help] mouse coords
    By youmew in forum WoW Memory Editing
    Replies: 4
    Last Post: 09-19-2008, 06:07 AM
  4. Help Object Problem!
    By wowperson in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 03-27-2008, 03:26 AM
All times are GMT -5. The time now is 10:03 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