Register for your free account! | Forgot your password?

You last visited: Today at 01:40

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

Advertisement



C# Example

Discussion on C# Example within the Perfect World forum part of the MMORPGs category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Oct 2008
Posts: 1
Received Thanks: 0
C# Example

Can some one make a code to show an exemple about how to show any ingame information, MaxHP for example...
Not nacessary in C#, maybe another language..
With this, everybody can make your own bot.
Im a litte bit confused about how to access the memory and get the value that i want.

Tanks anyway
pessanha is offline  
Old 10/05/2008, 04:59   #2
 
elite*gold: 0
Join Date: Jun 2008
Posts: 292
Received Thanks: 36
Just use cheat engine, dont need C# there is also a topic with a ton of pointers, it's pinned to the top, try looking
GODDNESS is offline  
Old 10/05/2008, 05:07   #3
 
elite*gold: 0
Join Date: Mar 2007
Posts: 81
Received Thanks: 10
Quote:
Originally Posted by GODDNESS View Post
Just use cheat engine, dont need C# there is also a topic with a ton of pointers, it's pinned to the top, try looking
lol... you cant make a bot with cheat engine. he wants to be able to look at his stuff ingame and make it show on his application and he might want to send packets
vinceiscoolio is offline  
Old 10/05/2008, 15:07   #4
 
elite*gold: 0
Join Date: Feb 2008
Posts: 12
Received Thanks: 4
int CW2IClient::ReadPlayerInfo(void)
{
GetWindowThreadProcessId(m_hWnd, &dwProcessID);
m_hProcess = OpenProcess(PROCESS_VM_READ, FALSE, dwProcessID);
if (!m_hProcess)
return 0x01;
LPBYTE lpBaseAdd,lpCharBaseAdd,lpTempAdd;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)W2I_BASE_ADD, (LPVOID)&lpBaseAdd, 4, NULL))
return 0x02;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)(lpBaseAdd + 0x20), (LPVOID)&lpCharBaseAdd, 4, NULL))
return 0x03;
lpTempAdd = lpCharBaseAdd + 0x3C;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrCorX), 4, NULL))
return 0x04;
lpTempAdd = lpCharBaseAdd + 0x40;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrCorZ), 4, NULL))
return 0x05;
lpTempAdd = lpCharBaseAdd + 0x44;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrCorY), 4, NULL))
return 0x06;
lpTempAdd = lpCharBaseAdd + 0x448;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrLV), 4, NULL))
return 0x07;
lpTempAdd = lpCharBaseAdd + 0x450;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrCurHP), 4, NULL))
return 0x08;
lpTempAdd = lpCharBaseAdd + 0x454;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrCurMP), 4, NULL))
return 0x09;
lpTempAdd = lpCharBaseAdd + 0x478;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrMaxHP), 4, NULL))
return 0x0A;
lpTempAdd = lpCharBaseAdd + 0x47C;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrMaxMP), 4, NULL))
return 0x0B;
lpTempAdd = lpCharBaseAdd + 0x458;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrCurEXP), 4, NULL))
return 0x0C;
lpTempAdd = (LPBYTE)W2I_EXP_ARRAY + (m_sPlayer.plrLV-1)*4;
if (!ReadProcessMemory(m_hProcess, (LPCVOID)lpTempAdd, (LPVOID)&(m_sPlayer.plrMaxEXP), 4, NULL))
return 0x0D;
phuongnl is offline  
Thanks
1 User
Reply




All times are GMT +1. The time now is 01:41.


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