Results 1 to 8 of 8
  1. #1
    P.o.X
    P.o.X is offline
    Member-in-training P.o.X's Avatar
    Join Date
    2012 May
    Posts
    64
    Thanks Thanks Given 
    11
    Thanks Thanks Received 
    11
    Thanked in
    7 Posts
    Rep Power
    0

    Exclamation [C#]I have a problem with pointers(VIDEO)


    CODE:

    Spoiler


    I get strange results why?
    If u have a project to read pointers can u give me??
    I`m not pro in C# but i heard is better then vb.net at this part with pointers.
    HERE ARE THE DLL`s i`m using v1,idk how to use v2
    V2 Functions:

    Spoiler



    And for v1:
    IDK all functions download v1 from attachments

    Please register or login to download attachments.

    Last edited by P.o.X; 2013-02-13 at 03:48 PM. Reason: yizheng request :D

  2. #2
    AikaMaster
    AikaMaster is offline
    Senior Member AikaMaster's Avatar
    Join Date
    2012 May
    Location
    Inside you mind!
    Posts
    245
    Thanks Thanks Given 
    58
    Thanks Thanks Received 
    642
    Thanked in
    68 Posts
    Rep Power
    0
    Hm, I don't see any mistakes in your code, maybe wrong baseaddress or offsets?

    PS: If you want to receive the address in hex, just add this to the ToString method: ToString("X")
    MessageBox.Show(address.ToString("X"));

  3. #3
    P.o.X
    P.o.X is offline
    Member-in-training P.o.X's Avatar
    Join Date
    2012 May
    Posts
    64
    Thanks Thanks Given 
    11
    Thanks Thanks Received 
    11
    Thanked in
    7 Posts
    Rep Power
    0
    Quote Originally Posted by AikaMaster View Post
    Hm, I don't see any mistakes in your code, maybe wrong baseaddress or offsets?

    PS: If you want to receive the address in hex, just add this to the ToString method: ToString("X")
    MessageBox.Show(address.ToString("X"));
    How i can convert the value showen in the real value like in game ?

  4. #4
    yizheng
    yizheng is offline
    Awesome to the MAX yizheng's Avatar
    Join Date
    2010 Aug
    Posts
    743
    Thanks Thanks Given 
    124
    Thanks Thanks Received 
    728
    Thanked in
    187 Posts
    Rep Power
    14
    Quote Originally Posted by P.o.X View Post
    I get strange results why?
    If u have a project to read pointers can u give me??
    I`m not pro in C# but i heard is better then vb.net at this part with pointers.
    Can we see your class for "Memorys"?

    It's hard to see how the functions work properly with just function being used

    ---------- Post added at 11:48 PM ---------- Previous post was at 07:13 AM ----------

    Bump;

    public Form1()
    {
    InitializeComponent();
    }
    Memorys mem = new Memorys("Game");
    private void Form1_Load(object sender, EventArgs e)
    {

    }

    private void button1_Click(object sender, EventArgs e)
    {
    uint base_address = mem.baseaddress("Game.exe");
    base_address = base_address + 0x2E9A8C;
    uint address = (uint)mem.ReadPointer(base_address) + 0x68;
    address = (uint)mem.ReadPointer(address) + 0x1b4;
    address = (uint)mem.ReadPointer(address) + 0x4;
    address = (uint)mem.ReadPointer(address) + 0x9a4;
    MessageBox.Show(address.ToString(""));

    }
    I couldn't get the v1/v2 dll's to work for some reason(dependency errors) but on the last line of your code " MessageBox.Show(address.ToString("")); " just show's a message where the address is located.

    I have taken a look around the net and found the post where the dll was posted and saw these functions:

    To Read:

    Code:
    mem.ReadPointer(address);
    Retrun int but you can use:

    Code:
    mem.ReadPointer(address).ToString();
    To write in a label or wathaver

    And to read a string:

    Code:
    mem.ReadString(address).ToString();
    From what he/she mentioned, you can read the address using the function " .ReadPointer(address) "

    so, in your case; you can remove the line " MessageBox.Show(address.ToString("")); "

    and change it to this:

    public Form1()
    {
    InitializeComponent();
    }
    Memorys mem = new Memorys("Game");
    private void Form1_Load(object sender, EventArgs e)
    {

    }

    private void button1_Click(object sender, EventArgs e)
    {
    uint base_address = mem.baseaddress("Game.exe");
    base_address = base_address + 0x2E9A8C;
    uint address = (uint)mem.ReadPointer(base_address) + 0x68;
    address = (uint)mem.ReadPointer(address) + 0x1b4;
    address = (uint)mem.ReadPointer(address) + 0x4;
    address = (uint)mem.ReadPointer(address) + 0x9a4;
    int hp = mem.ReadPointer(address);
    MessageBox.Show(Convert.ToString(hp));


    }
    Try it and see how it goes.
    Last edited by yizheng; 2013-02-14 at 01:22 AM.

  5. The Following User Says Thank You to yizheng For This Useful Post:


  6. #5
    P.o.X
    P.o.X is offline
    Member-in-training P.o.X's Avatar
    Join Date
    2012 May
    Posts
    64
    Thanks Thanks Given 
    11
    Thanks Thanks Received 
    11
    Thanked in
    7 Posts
    Rep Power
    0
    yizheng
    Thank you sooooo mutch omg,now how i write xD?

  7. #6
    AikaMaster
    AikaMaster is offline
    Senior Member AikaMaster's Avatar
    Join Date
    2012 May
    Location
    Inside you mind!
    Posts
    245
    Thanks Thanks Given 
    58
    Thanks Thanks Received 
    642
    Thanked in
    68 Posts
    Rep Power
    0
    Quote Originally Posted by P.o.X View Post
    yizheng
    Thank you sooooo mutch omg,now how i write xD?
    I haven't tested the Dll yet, but I guess it's mem.WritePointer(address), or something. If you're using VisualStudio, type "mem.", and press ctrl + space to see all the functions available.

  8. #7
    yizheng
    yizheng is offline
    Awesome to the MAX yizheng's Avatar
    Join Date
    2010 Aug
    Posts
    743
    Thanks Thanks Given 
    124
    Thanks Thanks Received 
    728
    Thanked in
    187 Posts
    Rep Power
    14
    Quote Originally Posted by P.o.X View Post
    yizheng
    Thank you sooooo mutch omg,now how i write xD?
    public Form1()
    {
    InitializeComponent();
    }
    Memorys mem = new Memorys("Game");
    private void Form1_Load(object sender, EventArgs e)
    {

    }

    private void button1_Click(object sender, EventArgs e)
    {
    uint base_address = mem.baseaddress("Game.exe");
    base_address = base_address + 0x2E9A8C;
    uint address = (uint)mem.ReadPointer(base_address) + 0x68;
    address = (uint)mem.ReadPointer(address) + 0x1b4;
    address = (uint)mem.ReadPointer(address) + 0x4;
    address = (uint)mem.ReadPointer(address) + 0x9a4;
    mem.Write(address, 10); // Change 10 to what ever value you like your hp to be.

    }
    Copy and paste that.

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


  10. #8
    P.o.X
    P.o.X is offline
    Member-in-training P.o.X's Avatar
    Join Date
    2012 May
    Posts
    64
    Thanks Thanks Given 
    11
    Thanks Thanks Received 
    11
    Thanked in
    7 Posts
    Rep Power
    0
    yizheng
    works to write xD,thx

Similar Threads

  1. [Release] CODES - Pointers & Offsets
    By inesbrasil in forum MapleStory
    Replies: 0
    Last Post: 2012-08-22, 10:29 PM
  2. [Useful] Pointers
    By Dwar in forum Battle of the Immortals
    Replies: 2
    Last Post: 2011-02-08, 05:49 PM
  3. [Help] Pointers for CE
    By SternKraft in forum Requiem Online
    Replies: 0
    Last Post: 2011-01-30, 03:44 PM
  4. [C++] Example of patching pointers
    By Dwar in forum C/C++
    Replies: 0
    Last Post: 2010-11-29, 04:14 PM
  5. Pointers
    By Surubre in forum General Game Research
    Replies: 4
    Last Post: 2010-11-29, 04:02 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •