Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 14:47

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

Advertisement



Looking for help with write memory

Discussion on Looking for help with write memory within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
elite*gold: 0
Join Date: Jan 2013
Posts: 59
Received Thanks: 22
Looking for help with write memory

Hello there. I was coding simple bots to mmorpg. Now I wanted to do my lessons and start with memory read / write functions.
So far, I logged into game and using Cheat Engine I correctly retrieved the X, Y of my character on the map.

I was shocked, because I couldn't find help anywhere for what I'm going to do.

I would like to send commands like "move to x, y" in order to make my bot move to stop or at least stay in training area.

Also. I don't know yet, how to retrieve information / memory, to cast skills or press target button.
kssbikini is offline  
Old 12/10/2018, 04:56   #2
 
elite*gold: 0
Join Date: Apr 2011
Posts: 363
Received Thanks: 167
Quote:
Originally Posted by kssbikini View Post

Also. I don't know yet, how to retrieve information / memory, to cast skills or press target button.
Before moving to x,y u need to start there, dont know what type of game u are playing but asumming you can click somewhere and your player will follow a path to clicked location, when you click somewhere there is a lot going on for example:
MouseClickPressed - get click position x,y
- check click against hud
- if true handle event / break
-check click in scene.
-if true convert to world coordinates, makePath(creates a path to follow from your actual coordinate to target location), encode move path, encript, send packet

This is just an example.

Where to start? Open wireshark and log game packets check what protocol they use for communication (try clicking somewhere and check what u got, repeat and see, port 443? ssl mitmproxy is the best option )
Don't want to mess with packets, search for mouse state, first scan unkown initial value, (you need to ser hotkey for changed value and unchanged value scan) click mouse down scan changed, release scan changed, move around / use skills scan unchanged, repeat until get a few values, now pick one and check what addresses accesess this value, you should watch the window populate with assembly instructions, try clicking mouse down and check if a new address appear, move it without releasing and check too, finally release and check hopefully u will get some to start following, if not its not the right address..

So how do you call a movement function?
Its already inside the game loop

(
handleInput(); -> if(mouseReleased(){ change this flag and x,y params to call this function
Do sth
})
handleNetwork();
update();
Render ();

)


Is not easy, but try hard and u will make it work

Editor:sorry for my bad english but its late and i wrote with my phone
elmarcia is offline  
Old 12/10/2018, 12:30   #3
 
elite*gold: 0
Join Date: Jan 2013
Posts: 59
Received Thanks: 22
Yes, actually helped me a lot. Not that I've realized, how to build path using packets, but maybe one day, I will back to your post and try hard.

For now I'm happy, cause I've successfully added function, which uses memory x, y , read it and set the values border, when start training, if he's going too far any direction, there is a complex procedure, that gonna grab him and walk opposite direction, until meet the "half distance" . So far it looks good and will be useful especially that there are always bosses on crossroads. Must select a safe area.
kssbikini is offline  
Reply


Similar Threads Similar Threads
MEMORY WRITE CODE METİN2 C ++ Help
11/21/2014 - .NET Languages - 1 Replies
HELP MEMORY WRITE CODE C ++? :(
Memory read/write Programm (C++)
09/23/2010 - C/C++ - 9 Replies
Hallo ich hab n kleines Programm in C++ geschrieben, das eben den Speicher nach bestimmten Werten durchsucht. Man kann dann eben auch nach sich ändernden Werten suchen usw. So wie solche Programme eben so funktionieren... Problem hierbei ist nur, dass openprocess() bei manchen Anwendungen fehl schlägt. Bei allen Sachen bei denen ich es probiert habe (Diablo2,MineSweeper usw) geht es nur nicht bei KalOnline^^ Ich will nichmal irgendwas hacken oder so, ich will nur das openprocess() klappt. Ich...
[VB]Write Memory bzw Read Memory
06/26/2010 - .NET Languages - 8 Replies
Hi Ich hab das TuT von *Guidman* benütz um einen hack zu machen. So aber nun hab ihc ein paar fragen könnte man memory teil kürzer machen und am besten wie kann man das selber machen weil ich will nihct immer C&P machen. Und zu Read Memory kann man das auch machen das ein Label immer die Bestimmte Ahnzahl angiebt von dem Pointer?.(Wenn das Read Memory ist ?) Bitte helf mir Danke
C# Write process memory
08/16/2008 - CO2 Programming - 6 Replies
ok so i have a question about how do i use the api function writeprocessmemory in C#, i already have readprocessmemory but i can't seem to get writeprocessmemory... so if anyone could show me the call and an example (preferably a pinball example) it would be very helpful :) heres what i have so far: //================================================ ==============================================// // Function: MemoryOpen(int ProcessID])) // ...



All times are GMT +1. The time now is 14:48.


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.