evilelf Posted November 24, 2008 Share Posted November 24, 2008 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 More sharing options...
dbzfanatic Posted November 24, 2008 Share Posted November 24, 2008 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. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
evilelf Posted November 24, 2008 Author Share Posted November 24, 2008 Im new to this so,... I have no clue what your really talking about. But I would Love 2 know You move with : Arrow Keys, "w,d,s,a" & You can Click To Move Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 24, 2008 Share Posted November 24, 2008 (edited) 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 November 24, 2008 by dbzfanatic Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
evilelf Posted November 24, 2008 Author Share Posted November 24, 2008 (edited) 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 increasesyour 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=0xA07360PositionY=0xA07364 Edited November 24, 2008 by evilelf Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 24, 2008 Share Posted November 24, 2008 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? Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
evilelf Posted November 24, 2008 Author Share Posted November 24, 2008 (edited) Yes,... But how would i get him to go in a stright line? So i can learn how to make waypoints, and test... Edited November 24, 2008 by evilelf Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 24, 2008 Share Posted November 24, 2008 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 Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
evilelf Posted November 24, 2008 Author Share Posted November 24, 2008 (edited) 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 November 24, 2008 by evilelf Link to comment Share on other sites More sharing options...
dbzfanatic Posted November 24, 2008 Share Posted November 24, 2008 Yeah I have WLM just PM me your email and I'll add you. Hopefully this thread helps others who want to learn memory manipulation. Go to my website. | My Zazzle Page (custom products)Al Bhed Translator | Direct linkScreenRec ProSimple Text Editor (STE) [TUTORIAL]Task Scheduler UDF <--- First ever UDF!_ControlPaste() UDF[quote name='renanzin' post='584064' date='Sep 26 2008, 07:00 AM']whats help ?[/quote] Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now