Question[Solved]Help Please [Coder]

Posts 1–11 of 11 · Page 1 of 1
[Solved]Help Please [Coder]
How would I write this in my code, It's secondary weapon ammo
t6zm.exe+1E89334
Quote Originally Posted by iHc Wasted View Post
How would I write this in my code, It's secondary weapon ammo
t6zm.exe+1E89334
That is a pointer... Get the Module Base Address, in this case "t6zm.exe" and add 1E89334 to it. But you don't really need to. Even tho CE says it is a pointer, the address is always the same. The base address for t6zm.exe is always 0x400010, so 0x400010 + 0x1E8933 = 0x2289344 (< This is the your offset) :-)
Thanks bro, So would I put it like this in my code c# 0HackingGame.WriteInt((int)(HackingGame.ReadInt(0x 400010 + 0x1E8933) + 0x88), 1000);

would that work? (0x400010 + 0x1E8933) + 0x88)?

I was wounding how you add 0x400010 + 0x1E8933 and make it answer = 0x2289344 or will c# do that for me?

---------- Post added at 09:39 PM ---------- Previous post was at 09:29 PM ----------

And you done 0x400010 + 0x1E8933, It was 0x1E89334
Quote Originally Posted by iHc Wasted View Post
Thanks bro, So would I put it like this in my code c# 0HackingGame.WriteInt((int)(HackingGame.ReadInt(0x 400010 + 0x1E8933) + 0x88), 1000);

would that work? (0x400010 + 0x1E8933) + 0x88)?

I was wounding how you add 0x400010 + 0x1E8933 and make it answer = 0x2289344 or will c# do that for me?

---------- Post added at 09:39 PM ---------- Previous post was at 09:29 PM ----------

And you done 0x400010 + 0x1E8933, It was 0x1E89334
:S Again, the base address for t6zm is 0x400010, so, basic Math:
Code:
  0x0400010
+ 0x1E89334
------------
  0x2289344
0x2289344 Is the offset you're going to use.

Code:
HackingGame.WriteInt(0x2289344, 1000);
Or the unecessary way:

Code:
	
[DllImport("kernel32.dll")]
public static extern IntPtr GetModuleHandle(string lpModuleName);

HackingGame.WriteInt(GetModuleHandle("t6zm.exe") + (IntPtr)0x1E89334 , 1000);
Thanks heaps for the help champ, I still get nothing for that this is my command:

BO2_MemoryClass HackingGame = new BO2_MemoryClass();
if (HackingGame.Process_Handle("t6zm"))
HackingGame.WriteInt((int)(HackingGame.ReadInt(0x2 289344) ), 1000);

Can you see any mistakes ?
Quote Originally Posted by iHc Wasted View Post
HackingGame.ReadInt(0x2289344)
Why are you reading it?

I'm not going to spoon feed you... You can figure it out on your own now.
You would only read a pointer address

example = gteuk.ReadInteger(&H140C124) + &HC will read another address in it as a decimal value In MW3 so I would need to write to the address stored

However you already have the address so no need to read it so


HackingGame.WriteInt(0x2289344, 1000);

should work depending on the memory class being used as stated above by insane
Yeah I think its the memory class I have atm, try writing it. didn't work thanks for the help btw insane
Ok I worked this shit out
Just the floats addy I'm stuck with now lol
Write floats as bytes
/Solved & Closed

If you want help with those floats, create another thread, let's not hijack this one
Posts 1–11 of 11 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us