Results 1 to 11 of 11
  1. #1
    iHc Wasted's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Australia
    Posts
    45
    Reputation
    10
    Thanks
    82
    My Mood
    Bored

    Question [Solved]Help Please [Coder]

    How would I write this in my code, It's secondary weapon ammo
    t6zm.exe+1E89334

  2. #2
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,311
    My Mood
    Angelic
    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) :-)
    Last edited by MarkHC; 12-03-2012 at 11:43 PM.


    CoD Minion from 09/19/2012 to 01/10/2013

  3. The Following User Says Thank You to MarkHC For This Useful Post:

    iHc Wasted (12-04-2012)

  4. #3
    iHc Wasted's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Australia
    Posts
    45
    Reputation
    10
    Thanks
    82
    My Mood
    Bored
    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
    Last edited by iHc Wasted; 12-04-2012 at 06:00 AM.

  5. #4
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,311
    My Mood
    Angelic
    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);
    Last edited by MarkHC; 12-04-2012 at 08:09 AM.


    CoD Minion from 09/19/2012 to 01/10/2013

  6. The Following User Says Thank You to MarkHC For This Useful Post:

    iHc Wasted (12-04-2012)

  7. #5
    iHc Wasted's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Australia
    Posts
    45
    Reputation
    10
    Thanks
    82
    My Mood
    Bored
    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 ?

  8. #6
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,311
    My Mood
    Angelic
    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.


    CoD Minion from 09/19/2012 to 01/10/2013

  9. The Following User Says Thank You to MarkHC For This Useful Post:

    iHc Wasted (12-04-2012)

  10. #7
    gteuk's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    247
    Reputation
    15
    Thanks
    613
    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

  11. The Following User Says Thank You to gteuk For This Useful Post:

    iHc Wasted (12-04-2012)

  12. #8
    iHc Wasted's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Australia
    Posts
    45
    Reputation
    10
    Thanks
    82
    My Mood
    Bored
    Yeah I think its the memory class I have atm, try writing it. didn't work thanks for the help btw insane

  13. #9
    iHc Wasted's Avatar
    Join Date
    Oct 2012
    Gender
    male
    Location
    Australia
    Posts
    45
    Reputation
    10
    Thanks
    82
    My Mood
    Bored
    Ok I worked this shit out
    Just the floats addy I'm stuck with now lol

  14. #10
    gteuk's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Posts
    247
    Reputation
    15
    Thanks
    613
    Write floats as bytes

  15. #11
          ( ° ͜ʖ͡°)╭∩╮
    Former Staff
    MarkHC's Avatar
    Join Date
    Nov 2011
    Gender
    male
    Location
    127.0.0.1
    Posts
    2,751
    Reputation
    66
    Thanks
    14,311
    My Mood
    Angelic
    /Solved & Closed

    If you want help with those floats, create another thread, let's not hijack this one


    CoD Minion from 09/19/2012 to 01/10/2013

Similar Threads

  1. [SOLVED] HELP! Please
    By benniboi2905 in forum Call of Duty Modern Warfare 2 Help
    Replies: 5
    Last Post: 08-17-2010, 06:50 AM
  2. [SOLVED]Help please
    By jacob1421 in forum Call of Duty Modern Warfare 2 Help
    Replies: 4
    Last Post: 08-07-2010, 05:13 AM
  3. [SOLVED]Help please
    By Hitmaniac in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 08-02-2010, 07:30 AM
  4. [SOLVED] help please
    By betten in forum Call of Duty Modern Warfare 2 Help
    Replies: 2
    Last Post: 07-03-2010, 01:10 PM
  5. [Solved]Help please
    By zmansquared in forum Visual Basic Programming
    Replies: 2
    Last Post: 02-24-2010, 12:41 AM