HP Reading + sourcecode! (Updated for 5006)

12/17/2007 11:56 MushyPeas#1
Updated for 5006!!

Because of the dynamic nature of some of Conquer's memory values, some programs (like evanxxxm's [Only registered and activated users can see links. Click Here To Register...]) depend on foreground windows to run properly.
Because this is holding back developing some features I decided to try and find a solution to the problem.
This code is working 100% stable but some other programs (like CO2M8) can interfere with it.

Note: This has only been tested with a1blaster's v5006 multiclient, if you try it out on a different multiclient and it happens to work (though I admit that's unlikely) please post here which multi you used!

You can get a1blaster's v5006 multiclient here: [Only registered and activated users can see links. Click Here To Register...]

The version I used:
Patch 5006:
* [Only registered and activated users can see links. Click Here To Register...]



For anyone that would like a little more insight in how this memory patch operates:

Code:
[B]Original Instructions[/B] (To be overwritten by our own [B]JMP Instruction[/B]):

0048064E  |. 6A 0F          PUSH 0F
00480650  |. 8BCE           MOV ECX,ESI
00480652  |. 8BD8           MOV EBX,EAX				[B]#-The EAX register contains the HP[/B]



[B]JMP Instruction[/B]: (Must be applied [B]After[/B] the Custom Instructions)

0048064E    -E9 B4260600    JMP Conquer.004E2D07		[B]#-Start executing custom instructions[/B]

[B]Offset:[/B]		0x0048064E
[B]Hex Code:[/B]	E9B4260600



[B]Custom Instructions[/B]: (Must be applied [B]First[/B])

004E2D07   6A 0F            PUSH 0F				[B]#-Reconstruct original instructions[/B]
004E2D09   8BCE             MOV ECX,ESI				[B]#-Reconstruct original instructions[/B]
004E2D0B   8BD8             MOV EBX,EAX				[B]#-Reconstruct original instructions[/B]
004E2D0D   A3 D62C4E00      MOV DWORD PTR DS:[4E2CD6],EAX	[B]#-Write HP value to 0x004E2CD6[/B]
004E2D12  -E9 3DD9F9FF      JMP Conquer.00480654		[B]#-Carry on executing conquer[/B]

[B]Offset:[/B]		0x004E2D07
[B]Hex Code:[/B]	6A0F8BCE8BD8A3D62C4E00E93DD9F9FF
Attached are both an executable and sourcefile demonstrating the usage in AutoHotKey.
12/17/2007 12:47 yaoyeng#2
wat is the function of it??

EDIT: i open it and it only says my hp is example: 2000 then nothing else...LOL
12/17/2007 18:37 MushyPeas#3
Quote:
Originally Posted by yaoyeng View Post
wat is the function of it??

EDIT: i open it and it only says my hp is example: 2000 then nothing else...LOL
Read the first post as it tells you EXACTLY what this is...


Updated the program for better usability

And people please read the first post before asking questions.
12/17/2007 21:59 cyberside0#4
Value1: 6429
Value2: 0
Please write your real HP here:6429

seems to work now but after tonights patch it may not
12/17/2007 22:09 MushyPeas#5
Quote:
Originally Posted by cyberside0 View Post
Value1: 6429
Value2: 0
Please write your real HP here:6429

seems to work now but after tonights patch it may not
Thanks!
I will update it after a1blaster releases his new multi for the next patch if necessary.
12/17/2007 22:50 David5646#6
I used the newest patch w/ cotobo's exe

Value1: 4473
Value2: 0
Please write your real HP here: 4473

:D looks like it works to me
12/18/2007 00:31 CookieTao#7
Value1: 2198
Value2: 0
Please write your real HP here: 2198

Good job, works for me =]
12/18/2007 07:25 cyberside0#8
Just tried it with A1s new multi and its now working both values are now 0's
12/18/2007 11:40 MushyPeas#9
Quote:
Originally Posted by cyberside0 View Post
Just tried it with A1s new multi and its now working both values are now 0's
Ty for letting me know, I'll work on updating it.
12/18/2007 13:49 Vivian#10
Value1: 1908
Value2: 5275
Please write your real HP here: 1908
12/18/2007 14:44 lordzex#11
Value1: 1
Value2: 0
Please write your real HP here:4638
It dosnt work after patch 5006
btw erf I dont know who WRITE THAT POST I WILL CHANGE MY PASSWORD now
12/18/2007 15:45 MushyPeas#12
Quote:
Originally Posted by lordzex View Post
btw erf I dont know who WRITE THAT POST I WILL CHANGE MY PASSWORD now
What are you talking about? The sourcecode is attached aswell :/
12/18/2007 18:10 MushyPeas#13
First post updated with new attachments!

[Only registered and activated users can see links. Click Here To Register...]
12/18/2007 18:31 Kondzior#14
Value1: 1
Value2: 0
Please write your real HP here:2755


some wrong that score ?? ... i dont understand that and my english is in low lvl :P
12/18/2007 18:47 cyberside0#15
Value: 6379
Please write your real HP here:6379
Using A1 multi and cotobo running

F.Y.I. will read 0 if your also running CO2M8 dont know if theres a work around for that but I thought I would tell you.