Need Help Displaying HP. (New to Memory Editing) menu

User Tag List

Results 1 to 7 of 7
  1. #1
    eggman689's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need Help Displaying HP. (New to Memory Editing)

    I am trying to display my characters HP to a label but I'm having a little trouble.

    Code:
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.Data;
    using System.Drawing;
    using System.Linq;
    using System.Text;
    using System.Windows.Forms;
    using Magic;
    
    namespace BlackMagic1
    {
        public partial class Form1 : Form
        {
    
            BlackMagic mem = new BlackMagic();
            public Form1()
            {
                InitializeComponent();
                toolStripStatusLabel.Text = "mainform loaded successfully.";
            }
    
            private void Form1_Load(object sender, EventArgs e)
            {
    
            }
    
            private void groupBox1_Enter(object sender, EventArgs e)
            {
    
            }
            private bool GetProcess(string pName)
            {
                return mem.OpenProcessAndThread(SProcess.GetProcessFromProcessName(pName));
            }
    
            private void button1_Click(object sender, EventArgs e)
            {
                uint hpoffset = 0x1F * 4;
                uint playerAddress = 0x010BD5F4;
                test.Text = "Are we attached to wow? " + GetProcess("wow").ToString();
                //mem.ReadUInt(mem.ReadUInt(playerAddress) + 0x34);
                uint playerBase = mem.ReadUInt(mem.ReadUInt(mem.ReadUInt(playerAddress) + 0x34) + 0x24);
                button1.Text = "Bot Started";
                uint playerHp = mem.ReadUInt(mem.ReadUInt(mem.ReadUInt(playerBase) + 0x8) + hpoffset);
                characterhp.Text = playerHp.ToString();
            }
    
            private void button2_Click(object sender, EventArgs e)
            {
    
            }
        }
    
    }
    I keep getting the same value back as 3880 something, I'm using blackmagic as you can see. Was wondering if any one could tell me what I have messed up on.

    Need Help Displaying HP. (New to Memory Editing)
  2. #2
    wraithZX's Avatar Active Member
    Reputation
    43
    Join Date
    May 2007
    Posts
    122
    Thanks G/R
    0/1
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    LTFS tends to be the best way to get this information - you should probably check it out, should make things easy.

  3. #3
    eggman689's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh wow, you can search on forums? Now when did they add this?

    Now on a real note, I did search found something similar coded in C++ tried to go off of it and thats how I got where I am. But I'm still having issues with it displaying the same value over and over instead of my HP.

    Thats why I'm asking for help.

  4. #4
    SKU's Avatar Contributor
    Reputation
    306
    Join Date
    May 2007
    Posts
    565
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    uint playerHp = mem.ReadUInt(mem.ReadUInt(mem.ReadUInt(playerBase) + 0x + hpoffset);

    Remove the red part.

  5. #5
    eggman689's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Wow SKU that works perfectly, I understand what I did wrong now, thank you for the help.

  6. #6
    Temptz's Avatar Member
    Reputation
    13
    Join Date
    Apr 2008
    Posts
    56
    Thanks G/R
    0/0
    Trade Feedback
    1 (100%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Originally Posted by eggman689 View Post
    Oh wow, you can search on forums? Now when did they add this?

    Now on a real note, I did search found something similar coded in C++ tried to go off of it and thats how I got where I am. But I'm still having issues with it displaying the same value over and over instead of my HP.

    Thats why I'm asking for help.
    If you searched the forums and actually took time to read through post, you would of found this:

    Code:
    Process[] processes = Process.GetProcessByName("Wow");
    BlackMagic wow = new BlackMagic(processes[0].Id);
    
    uint playerBase = wow.ReaUint(wow.ReadUInt(wow.ReadUint(0x010B65F4) + 0x34) + 0x24);
    
    private void Health
    {
        get { return wow.ReadInt(wow.ReadUInt(playerBase + 0x08) + 0x17 * 4); }
    }
    
    private void MaxHealth
    {
        get { return wow.ReadInt(wow.ReadUInt(playerBase + 0x08) + 0x1F * 4); }
    }
    
    while(true)
    {
        Console.WriteLine("Health:{0}/{1}", Health, MaxHealth);  
    }
    Posted By Nesox. Pretty much the same as SKUs, but this displays both Current health and Maxhealth (Example: 484/8192). But glad you figured it out. Good luck.
    I close my eyes when I read.

  7. #7
    eggman689's Avatar Member
    Reputation
    1
    Join Date
    Jun 2007
    Posts
    18
    Thanks G/R
    0/0
    Trade Feedback
    0 (0%)
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Yep got it figured out, already had added current/max hp current level etc.

    Thanks for all the help though.

Similar Threads

  1. Will pay for help. Need help for map/scenes/navmesh memory read extraction.
    By pierresk8 in forum Diablo 3 Bots Questions & Requests
    Replies: 0
    Last Post: 12-11-2012, 03:55 AM
  2. Need help buying a new PC
    By oncaccounts in forum Hardware
    Replies: 3
    Last Post: 03-13-2012, 04:50 PM
  3. Need help with my new PC~~BSOD
    By Epidromeas in forum Hardware
    Replies: 21
    Last Post: 01-10-2012, 10:53 AM
  4. OMG, need help, antrix server, new patch problems
    By Greatdrak in forum World of Warcraft Emulator Servers
    Replies: 3
    Last Post: 09-26-2007, 09:12 PM
All times are GMT -5. The time now is 06:10 PM. 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