[CODE POST FOR NOOBS (FIND MINE x,y,z)] + Question menu

Shout-Out

User Tag List

Results 1 to 8 of 8
  1. #1
    bhpushnslide's Avatar Member
    Reputation
    5
    Join Date
    Feb 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    [CODE POST FOR NOOBS (FIND MINE x,y,z)] + Question

    Hey all,

    Just thought id post this code that WORKS (*looks shocked and amazed*)

    Thanks to everyone who helped me get to this point!

    first of all the code: (sorry if its a bit poorly coded.. but iv only been programming for a few weeks)

    Uses BlackMagic DLL by Shynd also used his example off his site for going though all the objects. So special thanks there!

    Also thanks to: Robske007a who gave me alot of help!

    Code:
                    BlackMagic wow = new BlackMagic();
                    if (wow.OpenProcessAndThread(SProcess.GetProcessFromProcessName("Wow")))
                    {
    
                        uint playerBase = wow.ReadUInt(wow.ReadUInt(wow.ReadUInt(0x0127F13C) + 0x30) + 0x28); // Your toon
                        uint s_curMgr = wow.ReadUInt(wow.ReadUInt(0x11CB310) + 0x28A4); // The object manager 
                        uint curObj = wow.ReadUInt(s_curMgr + 0xAC); // The first object in the object manager
                        uint nextObj = 0;
    
                        while (curObj != 0 && (curObj & 1) == 0)
                        {
                            UInt64 type = wow.ReadUInt(curObj + 0x14);
                            string oName = wow.ReadASCIIString(wow.ReadUInt(wow.ReadUInt(curObj+0x1F4) +0x078), 30);
    
                            float oX = wow.ReadFloat(wow.ReadUInt(curObj + 0x08) + 0x40); // 
                            float oY = wow.ReadFloat(wow.ReadUInt(curObj + 0x08) + 0x44); // } OBJECT LOCATION
                            float oZ = wow.ReadFloat(wow.ReadUInt(curObj + 0x08) + 0x48); // 
    
                            float myX = wow.ReadFloat(playerBase + 0x7D0); //
                            float myY = wow.ReadFloat(playerBase + 0x7D4); // } YOUR LOCATION
                            float myZ = wow.ReadFloat(playerBase + 0x7D8); //
    
    
                            if (type == 5 && oName.IndexOf("Vein") > 0)
                            {
                                Console.WriteLine("Object Name: {0}", oName);
                                Console.WriteLine("Item Location: X=({0}) Y=({1}) Z=({2})",oX ,oY ,oZ);
                                Console.WriteLine("Your Location: X=({0}) Y=({1}) Z=({2})", myX, myY, myZ); 
                                    
                            }
                            nextObj = wow.ReadUInt(curObj + 0x3C); // Sets nextObj to the next object in the manager.
    
                            if (nextObj == curObj)  break;
    
                            else curObj = nextObj;
                        }
                    }
                    else
                    {
                        Console.WriteLine("World of Warcraft could not be opened for read/write.");
                    }
    
                    Console.ReadLine(); 
    
                }
    What it does.. Prints out all game objects with the word "Vein" in them with there x, y, z's... Also prints out your own location

    any questions please ask!


    I did have a question tho......

    AT the moment it only lists items that are already showing up in my mini map.... I thought i read somewhere that the "bubble" (the objects loaded around your toon) was bigger than the mini map size.... Is there any way to see a larger area?

    [CODE POST FOR NOOBS (FIND MINE x,y,z)] + Question
  2. #2
    arigity's Avatar Banned
    Reputation
    49
    Join Date
    Dec 2007
    Posts
    548
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    AT the moment it only lists items that are already showing up in my mini map.... I thought i read somewhere that the "bubble" (the objects loaded around your toon) was bigger than the mini map size.... Is there any way to see a larger area?
    the maximum distance from your character that objects are updated is slightly larger then the default map zoom size. this of course, is not true for the actual land :P

    you *might* be able to get information from objects you've already seen but they wouldn't be updated, if they moved or changed at all it wouldn't show.

  3. #3
    bhpushnslide's Avatar Member
    Reputation
    5
    Join Date
    Feb 2009
    Posts
    28
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by arigity View Post
    the maximum distance from your character that objects are updated is slightly larger then the default map zoom size. this of course, is not true for the actual land :P

    you *might* be able to get information from objects you've already seen but they wouldn't be updated, if they moved or changed at all it wouldn't show.
    ahhh ok.... so only really get a small bonus by doing this...

    one other question... is there any way of finding out how big each of the area sizes are in pixels?

    i thought maybe moving one point on the game coords and recording my start and finish positions would work... in shatrath its about 9px per 1 point of coord movement.. But this is a pretty lame way to do it.. any other ideas?

  4. #4
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thx for the code, easy and very usefull ! +Rep

  5. #5
    Dalord Urgod's Avatar Member
    Reputation
    1
    Join Date
    Feb 2009
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thanks used it to get bober x,y now all i need is to interact :-)

  6. #6
    Smarter's Avatar Member
    Reputation
    10
    Join Date
    May 2008
    Posts
    31
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by bhpushnslide View Post
    ahhh ok.... so only really get a small bonus by doing this...

    one other question... is there any way of finding out how big each of the area sizes are in pixels?

    i thought maybe moving one point on the game coords and recording my start and finish positions would work... in shatrath its about 9px per 1 point of coord movement.. But this is a pretty lame way to do it.. any other ideas?
    Yes, it's located in the DBC files, DBFilesClient\WMOAreaTable.dbc, each zone has 4 grid points to show it's size.

  7. #7
    JuJuBoSc's Avatar Banned for scamming CoreCoins Purchaser
    Reputation
    1019
    Join Date
    May 2007
    Posts
    922
    Thanks G/R
    1/3
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Dalord Urgod View Post
    Thanks used it to get bober x,y now all i need is to interact :-)
    Oh yeah good idea to get bober x y with this +Rep

  8. #8
    WhatIWant's Avatar Member
    Reputation
    1
    Join Date
    Jun 2008
    Posts
    11
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Thank you shynd =) I'm learning VB, and after i'll learn C# I just wanted to test those lines because it looks realy easy to understand.

    I imagine that if I run this application and if there is a message that says that ReadUInt failed that's because the offset presented there are too old and i have to actualized it?

Similar Threads

  1. Fishingbuddy for noobs
    By Minimized in forum World of Warcraft Bots and Programs
    Replies: 5
    Last Post: 10-15-2006, 07:19 AM
All times are GMT -5. The time now is 03:35 PM. 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