Jump to content

How Do I Work With MemoryAddresses?


evilelf
 Share

Recommended Posts

So I've been playing this game for some time now,

& Now I want to get my feet wet in memory addresses.

It's my first time ever playing around with memory like this.

So i have This

PositionX=0xA07360

PositionY=0xA07364

And i've looked up " NomadMemory " ,

But i want to be able to move my player around

" In Game " With the memory addresses...

Could Some one Point me in the right direction?

I would love for a small scrip, but Im not scared of

" AutoIt Help File "

Link to comment
Share on other sites

The memory addresses should only be used to read the current position. If you change them radically there is a good chance you could crash your client or be banned. How do you move normally in the game? Do you click or can you use the arrow keys? Just get your current x,y position, compare it to where you want to be,then move in the proper direction. It's not that difficult in theory and in practice it's little harder.

Link to comment
Share on other sites

The best way would be to read the current position from memory (your x and y coordinates) and then somehow get the coordinates you wish to go to (an ini file works well) then just compare. Say you are at 220,340 and need to go to 300,340. Assuming that moving to the right increases your x value you could do something like this:

Do
$x = _MemoryRead(*location of x position in memory*,*PID of process to read*)
If $x < 300 Then
Send("{D}")
EndIf
$x_new = _MemoryRead(*loc*,*PID*)
Until $x_new = 300

This is just an example but it should convey the basic idea.

Edit: Made it a bit neater.

Edited by dbzfanatic
Link to comment
Share on other sites

The best way would be to read the current position from memory (your x and y coordinates)

and then somehow get the coordinates you wish to go to (an ini file works well) then just compare.

Say you are at 220,340 and need to go to 300,340. Assuming that moving to the right increases

your x value you could do something like this:

How would i read the current position?

This is all i have,

Do the Memory Addresses Some how give me the Current Position?

Keep In Mind, It's My first time do stuff like this...

PositionX=0xA07360

PositionY=0xA07364

Edited by evilelf
Link to comment
Share on other sites

It's in the code. You would have to use the proper hex values for your game but if the ones you posted are proper then you could just do:

$PID = ProcessExists("gamename.exe")
If $PID = 0 Then
Do
$msg = MsgBox(1,"Error","Please open the game first.")
Until $PID <> 0
EndIf

$PointX = "0xA07360"

Do
$x = _MemoryRead($PointX,$PID)
If $x < 300 Then
Send("{D}")
EndIf
$x_new = _MemoryRead($PointX,$PID)
Until $x_new = 300

Starting to get it?

Link to comment
Share on other sites

It's just a matter of common sense and some math. There are a few waypoint bots on the forums already so if you don't understand just look at those for inspiration. I'm working on a bot right now for a friend so now is the time to ask me about things like this :)

Link to comment
Share on other sites

kool.

well im going to hit the forums up all night, i need to learn this cause i really want 2.

I'll have a few small things to ask, Ill post here or If you have WLM/WindowsLiveMessenger

we could talk on there...

Edited by evilelf
Link to comment
Share on other sites

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...