Finding AH Buyout Static Pointer? menu

User Tag List

Page 2 of 2 FirstFirst 12
Results 16 to 19 of 19
  1. #16
    Kroge's Avatar Private
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Thaelion View Post
    Code:
    public class AH
        {
            private static int proc_id;
            public AH(int procID)
            {
                proc_id = procID;
            }
    
            public static void GetBuyOut()
            {
                int buyoutItem1 = GetBuyoutValue(new List<int>() {0, 0xC, 0xD8 }); // 1st Item
                int buyoutItem2 = GetBuyoutValue(new List<int>() {0, 0xC, 0x1F0 }); // 2nd Item
                int buyoutItem3 = GetBuyoutValue(new List<int>() {0, 0xC, 0x54, 0, 0x2B4 }); // 3rd Item
    
                Console.WriteLine(buyoutItem1);
                Console.WriteLine(buyoutItem2);
                Console.WriteLine(buyoutItem3);
            }
            private static int GetBuyoutValue(List<int> offsets)
            {
                ProcessMemory memory = new ProcessMemory(proc_id);
                memory.StartProcess();
    
                int result = memory.ReadInt(memory.ImageAddress() + 0x00FC7590);
                foreach (int item in offsets)
                {
                    result = memory.ReadInt(result += item);
                }
    
                return result;
            }
        }
    If you look at that code, you will be able to figure out how to get the rest of the information.
    Hope that helps.
    I've been doing memory reads in Java, but since I found this site I see most people are using C# and it looks quite a bit more simple. Went to go check out this code, but I can't find the namespace for "ProcessMemory". Is this an external library, or can you point me in the right direction?

    Edit: Looks like it might be a custom class extended from Process, which would be why my libs don't contain it
    Last edited by Kroge; 07-13-2012 at 10:53 AM.

    Finding AH Buyout Static Pointer?
  2. #17
    _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)
    Yes it's a custom class. But there are plenty of public memory manipulation classes on the interwebs. Or if you want to write your own (which you should imo for the experience) you can use pinvoke.net: the interop wiki! for API import signatures. The bare minimum you would need is OpenProcess and ReadProcessMemory from kernel32. And preferably CloseHandle as well for resource cleanup.
    Or if you want to stick with java I'm sure there are memory libraries for that as well.

  3. #18
    Kroge's Avatar Private
    Reputation
    1
    Join Date
    Jul 2012
    Posts
    10
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by _Mike View Post
    Yes it's a custom class. But there are plenty of public memory manipulation classes on the interwebs. Or if you want to write your own (which you should imo for the experience) you can use pinvoke.net: the interop wiki! for API import signatures. The bare minimum you would need is OpenProcess and ReadProcessMemory from kernel32. And preferably CloseHandle as well for resource cleanup.
    Or if you want to stick with java I'm sure there are memory libraries for that as well.
    Yeah I was using jNative in Java, which is nice, but pretty clunky and with very little documentation. I'll probably stick with C# and write my own. I have 3 years professional software development experience, but just recently started messing around with this. Thanks for the tips though! I'll be back with findings and questions now and them, I'm sure. It's good this site has a lot of traffic, and from what I've seen a lot of helpful people too.

  4. #19
    wootpeng's Avatar Contributor
    Reputation
    154
    Join Date
    Jun 2008
    Posts
    227
    Thanks G/R
    0/0
    Trade Feedback
    6 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by Kroge View Post
    Yeah I was using jNative in Java, which is nice, but pretty clunky and with very little documentation. I'll probably stick with C# and write my own. I have 3 years professional software development experience, but just recently started messing around with this. Thanks for the tips though! I'll be back with findings and questions now and them, I'm sure. It's good this site has a lot of traffic, and from what I've seen a lot of helpful people too.
    In case you don't want to write your own: This is the library he is using: http://www.ownedcore.com/forums/gene...ing-class.html (C# Memory Reading/Writing Class) .

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Some structures and static pointers
    By Wrongusername in forum Path of Exile
    Replies: 4
    Last Post: 03-14-2013, 10:12 PM
  2. Static pointers?
    By Jaerin in forum SWTOR Memory Editing
    Replies: 3
    Last Post: 11-29-2012, 11:13 AM
  3. [Question] Finding the player base pointer
    By ddebug in forum WoW Memory Editing
    Replies: 8
    Last Post: 02-24-2012, 12:15 AM
  4. [wow][mac] Finding offsets - Object List Pointer
    By Tanaris4 in forum WoW Memory Editing
    Replies: 0
    Last Post: 12-14-2009, 12:23 AM
  5. [Help] How to find WoW version as pointer?
    By Jadd in forum WoW Memory Editing
    Replies: 3
    Last Post: 08-23-2008, 06:19 AM
All times are GMT -5. The time now is 07:43 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