C# memory reading menu

User Tag List

Results 1 to 2 of 2
  1. #1
    Floppixx's Avatar Member
    Reputation
    1
    Join Date
    Oct 2009
    Posts
    17
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    C# memory reading

    Hey guy´s, :wave:

    I have a problem too read a float adress in C# in the game Runes of Magic.
    Normaly I read memory in
    Code:
    uint
    linke this:

    Code:
     [DllImport("kernel32.dll")]
            static extern IntPtr OpenProcess(UInt32 dwDesiredAccess, Boolean bInheritHandle, UInt32 dwProcessId);
    
    [DllImport("kernel32.dll")]
            static extern bool ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress,
            byte[] lpBuffer, UIntPtr nSize, ref uint lpNumberOfBytesWritten);
    
    private void timer1_Tick(object sender, EventArgs e)
            {
                Process[] RoM_Processes = Process.GetProcessesByName("client");
                if (RoM_Processes.Length == 0)
                {
                    MessageBox.Show("Doesent work xD!\nClose!", "Error:LoLz!", MessageBoxButtons.OK, MessageBoxIcon.Error);
                    timer1.Stop();
                    this.Close();
                }
    
                Process Runes_of_Magic = RoM_Processes[0];
                IntPtr readHandle = OpenProcess(0x10, false, (uint)Runes_of_Magic.Id);
                byte[] bytes = new byte[24];
                uint size = sizeof(int);
                uint rw = 0;
    
    //Static adress
    uint baseAddress_1 = 0x009A116C;
    // game Offsets
    uint baseOffset = 0x598;
    uint currHPOffset = 0x2c8;
    
                //Read base
                ReadProcessMemory(readHandle, (IntPtr)baseAddress_1, bytes, (UIntPtr)size, ref rw);
                uint baseContent_1 = BitConverter.ToUInt32(bytes, 0);
                uint baseAddress_2 = baseContent_1 + baseOffset;
                ReadProcessMemory(readHandle, (IntPtr)baseAddress_2, bytes, (UIntPtr)size, ref rw);
                uint baseContent_2 = BitConverter.ToUInt32(bytes, 0);
    
    //Read current player hp
    uint currHPAddress = baseContent_2 + currHPOffset;
    
    //Display it 
    health.Text = currHP;
    But I've heard that it is not really good to read X/Y/Z coords in integer...
    I don´t know how to read it as float...
    Can someone post a snippet ?
    Code:
    uint X_offset = 0x28;
                uint Y_offset = 0x30;
                uint Z_offset = 0x2C;
    I know I read the addresses too complicated.
    But I am a beginner so I can understand that. But unfortunately not with float

    C# memory reading
  2. #2
    Cheatz0's Avatar Member
    Reputation
    14
    Join Date
    May 2009
    Posts
    36
    Thanks G/R
    0/1
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should learn the simple things first before doing stuff like this. Like how to use your programming language. But wth.
    Read 4 bytes from the location in memory containing the desired coord.
    Convert these bytes using BitConverter.ToSingle().
    ????
    A winner is you. (Well, almost)

Similar Threads

  1. White Paper : Memory reading
    By tttommeke in forum WoW Memory Editing
    Replies: 41
    Last Post: 06-19-2008, 02:30 AM
  2. WoW Leveling Bot Memory Reading
    By Lindoz12 in forum WoW Memory Editing
    Replies: 2
    Last Post: 02-21-2008, 06:25 PM
  3. VB .Net Memory Reading Project
    By Glitchy in forum WoW Memory Editing
    Replies: 4
    Last Post: 01-22-2008, 12:37 PM
  4. [AutoIT3] WoW Cordinator (X,Y,MapID and rotation memory reading)
    By Vladinator in forum World of Warcraft Bots and Programs
    Replies: 22
    Last Post: 05-15-2007, 03:26 AM
All times are GMT -5. The time now is 01:48 AM. Powered by vBulletin® Version 4.2.3
Copyright © 2024 vBulletin Solutions, Inc. All rights reserved. User Alert System provided by Advanced User Tagging (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
Digital Point modules: Sphinx-based search