Hey.
I have this class for reading from memory:
Now I have some pointer with differen types. Some are texts, some are numbers.
I already did it to read my Charactername (Pointer + Offset):
This works.
Also I got the healthreader working:
But now i have some strange problems.
The first is another pointer (Value is 1-20).
I tried to get my Level with this:
The offset is right, but I get this:
1,401298E-45
Another problem is another number pointer with 2 offsets. Tried this:
And I see the value is changing (right) but the value is 100% wrong. I get:
2,397622E-42
So where is the problem with these 2 reading codes? The offsets + addresses are correct.
Thank you :)
I have this class for reading from memory:
Now I have some pointer with differen types. Some are texts, some are numbers.
I already did it to read my Charactername (Pointer + Offset):
Code:
int pID= 13700;
int PlayerPointer = 0x16c0c18;
int GameTimePtr = 0x16c3cbc;
int GoldAddresse = 0x16c3fdc;
Memory mem = new Memory(LoLID);
Process GameProcess = Process.GetProcessById(pID);
IntPtr BaseAddress = GameProcess.MainModule.BaseAddress;
//Name
string Name = mem.ReadStringPtr( BaseAddress.ToInt32() + PlayerPointer, new int[] { 0x20}, 10);
textBox1.Text = Name;
This works.
Also I got the healthreader working:
Code:
int MaxHealth = (int)mem.ReadFloatPtr(BaseAddress.ToInt32() + PlayerPointer, new int[] { 0x660 });
The first is another pointer (Value is 1-20).
I tried to get my Level with this:
Code:
int Level = mem.ReadIntPtr(BaseAddress.ToInt32() + PlayerPointer, new int[] { 0x3C5C });
1,401298E-45
Another problem is another number pointer with 2 offsets. Tried this:
Code:
lbGold.Text = mem.ReadFloatPtr(BaseAddress.ToInt32() + GoldAddresse, new int[] { 0x54, 0x44 }).ToString();
2,397622E-42
So where is the problem with these 2 reading codes? The offsets + addresses are correct.
Thank you :)