Complex Address for Pointers

Need Help With an Existing Feature in Memory Hacking Software? Ask Here

Moderators: g3nuin3, SpeedWing, WhiteHat, mezzo

Complex Address for Pointers

Postby Ivanpm » Tue Jun 30, 2009 1:40 am

Well, It's not really what the title says but I couldnt find the appropriate name. Anyways I found the pointers but it is the pointer when my player is #1 in the server. But i found out that when im #2 it sums C0F0 to the address when i was #1.

Note: This numbers don't have to do with score, it is only the number you were given by the server when you entered.

So every time i get more # eg. #3 sums C0F0 from #2 and so on so i made this Complex address which works but I don't know if there is an easier way to make this with Script or any other features of MHS.

Complex Address i did was

module.exe+0x30E833+C0F0*1

module meaning my module i didnt write that, and the * # meaning the player i am so if im player say 5 then it would be "*5".

You may be wondering how i know which player # i am, but there is an address that tells you. I was wondering if i could write in the complex address something like:

module.exe+0x30E833+C0F0*(the value of the address 0x00blabla).

Sorry if i wrote too much or if this may be in the wrong section meaning that this can be done with l spiro script easily D:
I must read the MHS help file before asking questions.
Ivanpm
Hackleberry Fin
 
Posts: 25
Joined: Sun Jun 07, 2009 4:18 am

Postby liqmysaq » Tue Jun 30, 2009 8:23 am

well you could write a script that reads the address that tells which player you are and then uses *# depending on which player you are. something like...
Code: Select all
extern BYTE playerNumber = {"module.exe", 0xA38}; //or whatever offset really is

void On_HK_GAME_EXE_0( DWORD dw1, DWORD dw2 ) {

if (playerNumber == 1) {
        complexAddress = module.exe+0x30E833+C0F0*1;
}
if (playerNumber == 2) {
        complexAddress = module.exe+0x30E833+C0F0*2;
}
 
        complexAddress = ;
}

then it will always have complexAddress be the correct pointer.
thats not exact script (im lazy and newbie scripter) but it should give u an idea of what i mean. that way it will automatically check which player you are and use the complex address that is correct when u press your hotkey or however else u set it up. i have used this method with teleport locations in games depending on what game map your on.
User avatar
liqmysaq
I Know Your Poop
 
Posts: 538
Joined: Tue Jan 01, 2008 2:02 am

Postby L. Spiro » Tue Jun 30, 2009 4:55 pm

If you already know the address of the “magic number” (index into an array) then why don’t you just use it instead of hard-coding the number?

module.exe+0x30E833+C0F0h*[ADDRESS OF MAGIC NUMBER]

Replace bold text only.


L. Spiro
Our songs remind you of songs you’ve never heard.
User avatar
L. Spiro
L. Spiro
 
Posts: 3129
Joined: Mon Jul 17, 2006 10:14 pm
Location: Tokyo, Japan

Postby Ivanpm » Tue Jun 30, 2009 11:46 pm

C0F0h <--- What is this h for Mister Spiro.

It has to do with the magic number's address?
I must read the MHS help file before asking questions.
Ivanpm
Hackleberry Fin
 
Posts: 25
Joined: Sun Jun 07, 2009 4:18 am

Postby SpeedWing » Wed Jul 01, 2009 12:26 am

C0F0h <--- What is this h for



it makes the the number hexadecimal.
though he could also do 0x ( if im right)
User avatar
SpeedWing
Defragler
 
Posts: 2031
Joined: Tue Jan 01, 2008 1:00 am
Location: If there is a Will there is a Solution.


Return to Help

Who is online

Users browsing this forum: No registered users and 0 guests