Register for your free account! | Forgot your password?

You last visited: Today at 17:40

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

Advertisement



help for a class in C #

Discussion on help for a class in C # within the PW Hacks, Bots, Cheats, Exploits forum part of the Perfect World category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Apr 2012
Posts: 13
Received Thanks: 3
help for a class in C #

hello,

after multiple web search, I can not find a class in C # that works for read/write memory.
To read the values ​​of the type HP, MP, XP .. no problem, but to read the value of the character's name I can not do it.

You with a class or an idea to solve my problem?
xortexx is offline  
Old 10/09/2012, 14:54   #2
 
Sᴡoosh's Avatar
 
elite*gold: 20
Join Date: May 2009
Posts: 1,290
Received Thanks: 326
Use Readprocessmemory() api. You need to read the following way :

Base -> char struct -> name offset -> pointer to start of array of widechar

Not at my dev computer currently or i'd show you a snippet of my bot.

Cheers
Sᴡoosh is offline  
Old 10/09/2012, 18:28   #3
 
Interest07's Avatar
 
elite*gold: 0
Join Date: Mar 2010
Posts: 862
Received Thanks: 576
Read it in as byte array or whatever first, then convert that to the appropriate string type i.e. for unicode use:

Code:
System.Text.Encoding encoding = System.Text.UnicodeEncoding();
string result = encoding.GetString(bytes, 0, i);
When reading in large chunks of text where you are unsure of the size, keep in mind that if you read in too much at a time (a large default buffer size) there is a chance you end up in unallocated memory, which will result in no data being read at all. Read in smaller chunks of memory at a time for these situations.
Interest07 is offline  
Old 10/09/2012, 19:25   #4
 
elite*gold: 0
Join Date: Apr 2012
Posts: 13
Received Thanks: 3
Thank you for your information, I'll try to do something.
Sᴡoosh : I would be interested to see your code snippet, it would move me faster.
xortexx is offline  
Reply


Similar Threads Similar Threads
[funny-release] change CLASS npc by addition to pirate class xDDD
01/12/2012 - CO2 PServer Guides & Releases - 30 Replies
all of us wating for pirate decided to code some sort of npc which change ur job in additon to pirate that some sort of fun no more in ur npc.cs or what ever its name add that #region (CharChanger By Eslam) case 17494: { switch (npcRequest.OptionID) { case 0: { dialog.Text("Would u like to change your job?"); dialog.Option("Yes Please", 1); dialog.Option("No.", 255); dialog.Send(); break; }



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


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.