Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Conquer Online 2 > CO2 Programming
You last visited: Today at 05:17

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

Advertisement



[QUESTION] HP Memory Address

Discussion on [QUESTION] HP Memory Address within the CO2 Programming forum part of the Conquer Online 2 category.

Reply
 
Old 05/16/2009, 16:21   #16
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Maybe this thread is dead now... im not sure xD... anyways, this is how i get the current HP using the function addresses from high6.

PHP Code:
uint32_t CCO2Functions::execute(voidopcodeuint32_t size)
{
    
voidremoteMem VirtualAllocEx(hProcess0sizeMEM_COMMITPAGE_EXECUTE_READWRITE);
    if (
remoteMem == NULL) { return 0; }
    if (!
WriteProcessMemory(hProcessremoteMemopcodesize0)) {
        
VirtualFreeEx(hProcessremoteMem0MEM_RELEASE);
        return 
0;
    }
    
HANDLE hThread CreateRemoteThread(hProcess065536, (LPTHREAD_START_ROUTINE)remoteMem000);
    if (!
hThread) {
        
VirtualFreeEx(hProcessremoteMem0MEM_RELEASE);
        return 
0;
    }
    while (
WaitForSingleObject(hThread1000) != WAIT_OBJECT_0) {}
    
uint32_t retval;
    
GetExitCodeThread(hThread, (DWORD*)&retval);
    
VirtualFreeEx(hProcessremoteMem0MEM_RELEASE);
    
CloseHandle(hThread);
    return 
retval;
}

CCO2Functions::CCO2Functions(uint32_t pid)
{
    
hProcess OpenProcess(PROCESS_ALL_ACCESSFALSEpid);
}

CCO2Functions::~CCO2Functions()
{
    if (
hProcess != INVALID_HANDLE_VALUE) {
        
CloseHandle(hProcess);
    }
}

uint32_t CCO2Functions::getHP()
{
    
char opcode[] =
    
"\x57"                     // PUSH EDI
    
"\x56"                     // PUSH ESI
    
"\x6A\x01"                 // PUSH 0x01
    
"\xB9\xB8\xAB\x5D\x00"     // MOV ECX, 0x005DABB8
    
"\xB8\x18\xA5\x4D\x00"     // MOV EAX, 0x004DA518
    
"\xFF\xD0"                 // CALL EAX
    
"\x5E"                     // POP ESI
    
"\x5F"                     // POP EDI
    
"\xC3";                    // RET
    
return execute((void*)opcodesizeof(opcode));

clintonselke is offline  
Old 05/17/2009, 07:01   #17
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
@clinton - Does that make the HP static?... If so, could you convert it to AutoIt script please .
swords is offline  
Old 05/17/2009, 15:58   #18
 
clintonselke's Avatar
 
elite*gold: 0
Join Date: Feb 2007
Posts: 348
Received Thanks: 2,175
Quote:
Originally Posted by swords View Post
@clinton - Does that make the HP static?... If so, could you convert it to AutoIt script please .
Yeap it does ... and converting to AutoIt... U wanna do it?? xD, enough information is available now.

THis is the only extra part u would have to translate into AutoIt using DllCall() function

PHP Code:
while (WaitForSingleObject(hThread1000) != WAIT_OBJECT_0) {} 
uint32_t retval
GetExitCodeThread(hThread, (DWORD*)&retval); 
That there waits until the function ends and gets the return value from it that was in EAX (ur hp value).

I'll convert it to AutoIt later, just feeling lazy atm
clintonselke is offline  
Old 05/17/2009, 18:09   #19
 
swords's Avatar
 
elite*gold: 20
Join Date: Dec 2005
Posts: 811
Received Thanks: 352
Quote:
Originally Posted by clintonselke View Post
Yeap it does ... and converting to AutoIt... U wanna do it?? xD, enough information is available now.

THis is the only extra part u would have to translate into AutoIt using DllCall() function

PHP Code:
while (WaitForSingleObject(hThread1000) != WAIT_OBJECT_0) {} 
uint32_t retval
GetExitCodeThread(hThread, (DWORD*)&retval); 
That there waits until the function ends and gets the return value from it that was in EAX (ur hp value).

I'll convert it to AutoIt later, just feeling lazy atm
Akaka, I don't understand C++, no chance I could convert it lol xD.

Thanks for doing this for me . I actually have an auto-potter that can pot at the exact HP you desire, using NO memory work at all, just algorithms... With this, I can make a background potter by sending F keys through ControlSend .
swords is offline  
Reply


Similar Threads Similar Threads
about memory address
09/13/2010 - CO2 Programming - 4 Replies
hello peeps i am trying to make a program that shows how much gold i have in my inventory without having to open it up all the time i have been searching on how to do this in vb6 and vb.net but i cant find anything that is what i am looking for so i came here to see if there was anyone that could point me in the right way on how to do this
[VB]Memory Address
06/30/2009 - .NET Languages - 5 Replies
Weiß jemande wie ich eine Memory Addresse in Visual Basic einbauen kann ? :) Ahja habe VB08 :) Liebe Grüße, AngelAndi
[Question] Memory address of VP?
06/06/2008 - Conquer Online 2 - 24 Replies
Anyone know the memory address for Virtue Points? Or is this stored on the server? How is it that people get it on their tools...
MP address in memory
05/06/2007 - Lineage 2 - 0 Replies
I want to make bot, I found HP address in memory, its 09DDD190 but I still can't find MP address ? Can anybody help me ? And srry because of my english, it is bad :rolleyes:



All times are GMT +1. The time now is 05:17.


Powered by vBulletin®
Copyright ©2000 - 2025, 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 ©2025 elitepvpers All Rights Reserved.