Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2
You last visited: Today at 16:10

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Memory reading help...

Discussion on Memory reading help... within the Conquer Online 2 forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Aug 2006
Posts: 449
Received Thanks: 4
Hi,

I need to read the amount of arrows on an archer (0-500). I have the pointer and offset, and i can get the right number in cheat engine, however whenever i try to read it from autohotkey i always get 0. Don't know why. I've always read 4 byte data before so i don't really know if i have the right code for 2 byte data. Here's the autohotkey code

Code:
ExtInt(ByRef pSource, pOffset = 0, pIsSigned = false, pSize = 4); From AutoHotKey Help
{
	Loop %pSize%
 result += *(&pSource + pOffset + A_Index-1) << 8*(A_Index-1)
	if (!pIsSigned OR pSize > 4 OR result < 0x80000000)
 return result
	return -(0xFFFFFFFF - result + 1)
}




WinGet, pid, PID, [Con


;Check if Process Available
if pid
{

;Base Address
	VarSetCapacity(arrowbase,4,0)
;Create 2 Byte (Int) Structure for Arrows
	VarSetCapacity(arrows,2,0)
	

;Open the Process for Handling
	ProcessHandle := DllCall("OpenProcess", "Int", 24, "Char", 0, "UInt", pid, "UInt")

;Check if Handle Created
	if ProcessHandle
	{


&#59;Get the raw 4 Bytes for Arrows Base Address
 DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",0x0051307C,"Str",arrowbase,"UInt",4,"UInt *",0)
&#59;Get the raw 2 Bytes for Arrows
&#59;DllCall("ReadProcessMemory","UInt",ProcessHandle,"UInt",ExtInt(arrowbase)+46,"Str",arrows,"UInt",2,"UInt *",0)

&#59;Close the Process Handler
 DllCall("CloseHandle","int",ProcessHandle)

&#59;Display amount of arrows
 MsgBox % "Arrows: " . ExtInt(arrows)
	}
}
Any help will be appreciated. Thanks
yokoyoko is offline  
Old 02/10/2007, 03:49   #2
 
elite*gold: 0
Join Date: Aug 2006
Posts: 449
Received Thanks: 4
Umm Bump ~~

Come on, please help
yokoyoko is offline  
Reply


Similar Threads Similar Threads
VB 08 Memory Reading
07/06/2010 - .NET Languages - 2 Replies
Hallo, Ich wollte in einem Spiel die HP auslesen lasse, dabei bin ich aber auf ein Problem gestoßen. Das Problem ist, das die Pointer Adresse so aussieht : "Hero.exe+".. http://www.imagebanana.com/img/o0org9ha/Problem.p ng Kann mir vllt. jmd sagen, wei ich das hinbekomme ?
Help with memory reading. C++.
06/12/2010 - Aion - 0 Replies
Hello people, I'm kinda new to memory reading in c++. Been doing similiar stuff, and done some other stuff like packet hacks etc but anyway, to the issue. I get weird values from AION when reading. And I'm prolly going about this totally wrong so I'll post you the code and hopefully some kind soul out there will point me in the right direction. int address = 0xA82424; int value; DWORD pid; if(!GameWindow) {
C++ Memory Reading
01/02/2010 - C/C++ - 4 Replies
huhu ich wollte jetzt von Autoit auf C++ umsteigen ... nun weis ich nur leider nicht wie die befehle fürs process id und memory aulesen usw bei c++ sind :) hat da jmd ne kleine übersicht oder sowas .. wäre toll x) mfg karl
Memory reading etc.
06/18/2008 - General Coding - 11 Replies
-
VB.Net Memory Reading
11/03/2006 - .NET Languages - 0 Replies
Basically I'm doing a course in VB.Net and I'm wondering if theres anyone here who can teach me or show me how to read memory values in my project. My course does not cover this, so I'm stuck with either self-research or asking questions. If anyone can help then I'd be very grateful. PS: The target game I'll be testing on is Conquer Online 2



All times are GMT +2. The time now is 16:10.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.