Getting target X Y Z coords (C#) menu

User Tag List

Results 1 to 13 of 13
  1. #1
    b9er's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Getting target X Y Z coords (C#)

    I want to take my targetGUID and loop through my object manager and compare GUIDs until I have a match and when I do grab the X Y and Z coords of the object. I'm having trouble looping through the object manager though.

    Here is my code I'm using the example from Shynd’s WoW Modification Journal and modifying it. My code never makes it to the loop.

    Code:
                uint s_curMgr = Memory.ReadUInt(hProcess, (0x011CA260 + 0x2864)); //client connection + curmgr offset
                Console.WriteLine("0x{0:X08}",s_curMgr);
                UInt64 targetGUID = Memory.ReadUInt64(hProcess, 0x010A58B8);
                Console.WriteLine("0x{0:X016}",targetGUID);
                uint curObj = Memory.ReadUInt(hProcess, (s_curMgr + 0xAC));
                uint nextObj = curObj;
                Console.WriteLine("0x{0:X08}",curObj);
    
                UInt64 localGUID = Memory.ReadUInt64(hProcess, (s_curMgr + 0xC0));
                Console.WriteLine("0x{0:X016}", localGUID);
    
    
                while (curObj != 0 &&(curObj & 1) == 0)
                {
                    Console.WriteLine("here");
                    UInt64 cGUID = Memory.ReadUInt64(hProcess, (curObj + 0x30));
    
                    if (cGUID == targetGUID)
                    {
                        Console.WriteLine("Match!");
                        float X = Memory.ReadFloat(hProcess, (curObj + 0x7D4));
                        float Y = Memory.ReadFloat(hProcess, (curObj + 0x7D0));
                        float Z = Memory.ReadFloat(hProcess, (curObj + 0x7D8));
                        Console.WriteLine("0x{0:X08} -- GUID: 0x{1:X016} | {2} {3} {4}", curObj, cGUID, X, Y, Z);
                    }
    
                    nextObj = Memory.ReadUInt(hProcess, (curObj + 0x3C));
                    if (nextObj == curObj)
                        break;
                    else
                        curObj = nextObj;
                }
    I don't even really understand what (curObj & 1) == 0 means but that is what is not true which makes me think my curObj is not right for whatever reason.

    Any Ideas?

    Getting target X Y Z coords (C#)
  2. #2
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    What's with everyone reading s_curMgr wrong??? It's [[0x11CA260] + 0x2864]...

  3. #3
    alek900's Avatar Contributor
    Reputation
    103
    Join Date
    Nov 2007
    Posts
    101
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    think it should be
    Code:
    while (curObj != 0 && (curObj % 2) == 0)
    19+4 that means i score

  4. #4
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Is that one offset really static for targetGUID? That would save me a lot of resources on some of my apps...

  5. #5
    b9er's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    This is the value of my s_curMgr:
    0xFFFFFF00

    It's the same when I read it from 0x11CA260 + 0x2864

    I changed my while to say (curObj % 2) == 0 and it still does not go into the while loop. curObj % 2 = 1

  6. #6
    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)
    YOU NEED
    TO READ
    FROM 0x11CA260
    AND THEN
    FROM THAT
    VALUE + 0x2864

    LSKDHFLSKDHF

  7. #7
    lanman92's Avatar Active Member
    Reputation
    50
    Join Date
    Mar 2007
    Posts
    1,033
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Are you reading [[0x11CA260] + 0x2864]? You need to read that first addy, then add the next one to it. The value at that sum will be s_curMgr.

  8. #8
    alek900's Avatar Contributor
    Reputation
    103
    Join Date
    Nov 2007
    Posts
    101
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by b9er View Post
    This is the value of my s_curMgr:
    0xFFFFFF00

    It's the same when I read it from 0x11CA260 + 0x2864

    I changed my while to say (curObj % 2) == 0 and it still does not go into the while loop. curObj % 2 = 1
    try with.
    Code:
    uint s_curMgr = Memory.ReadUInt(hProcess, Memory.ReadUInt(hProcess, 0x11CA260) + 0x2864));
    Edit: damn, too slow
    Last edited by alek900; 12-26-2008 at 08:30 PM.
    19+4 that means i score

  9. #9
    b9er's Avatar Member
    Reputation
    1
    Join Date
    Dec 2008
    Posts
    13
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    oh crap... Sorry!!

    Works now. Thanks

  10. #10
    kynox's Avatar Member
    Reputation
    830
    Join Date
    Dec 2006
    Posts
    888
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LSKDHFLSKDHF
    QFT

    ... filler

  11. #11
    luciferc's Avatar Contributor
    Reputation
    90
    Join Date
    Jul 2008
    Posts
    373
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I think in the Sticky it should be said how to read SCurManger etc.. Since alot of people ask this.

  12. #12
    Cypher's Avatar Kynox's Sister's Pimp
    Reputation
    1358
    Join Date
    Apr 2006
    Posts
    5,368
    Thanks G/R
    0/6
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by luciferc View Post
    I think in the Sticky it should be said how to read SCurManger etc.. Since alot of people ask this.

    Yes, I think I'll write a FAQ to go along with a new address/information dump when 3.0.8 hits live.

  13. #13
    run32.dll's Avatar Contributor
    Reputation
    98
    Join Date
    May 2007
    Posts
    53
    Thanks G/R
    2/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    let me take a look into the future ...

    13.Jan.2009 - 3:00 AM Blizz releases Patch 3.0.8, Server maintance starts
    13.Jan.2009 - 3:01 AM Cypher is downloading Patch
    13.Jan.2009 - 11:00 AM US Realms are back online
    13.Jan.2009 - 11:10 AM Cypher is posting 10pages with new memory dumps
    13.Jan.2009 - 11:11 AM Most mmowned users are happy to leech and Blizz is pissed ... again
    13.Jan.2009 - 11:15 AM noobs are posting a stupid questions ... gtfo!?
    13.Jan.2009 - 11:16 AM Cypher makes them go to mum and cry
    The next day all german Realms will be patched to 3.0.8 and run32.dll will read the post and give +Rep to Cypher (for the post AND the flame)


    PS: I should create a new account on mmowned called 'Cyphersfanboy' ... I like all these green posts so much ...

Similar Threads

  1. problem with getting target
    By yeahlol in forum WoW Bots Questions & Requests
    Replies: 0
    Last Post: 11-27-2010, 01:44 PM
  2. [AutoIt] Getting target name?
    By Ohsnap in forum WoW Memory Editing
    Replies: 11
    Last Post: 11-13-2009, 11:15 AM
  3. [Macro]get to know your position (coords) without addons!
    By Opirity1 in forum WoW UI, Macros and Talent Specs
    Replies: 0
    Last Post: 10-31-2008, 09:02 PM
  4. [Help] Getting target
    By Pragma in forum WoW Memory Editing
    Replies: 8
    Last Post: 10-19-2008, 11:48 PM
  5. [Help] Getting Target GUID
    By cenron in forum WoW Memory Editing
    Replies: 4
    Last Post: 10-06-2008, 11:59 PM
All times are GMT -5. The time now is 05:08 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