![]() Shoutbox (View Full Shoutbox)
|
||||
Click Refresh to load shouts. |
||||
|
Basic functions in MASM for tibia cheating
|
|
02-06-2008, 05:05 AM
(This post was last modified: 02-07-2008 03:56 AM by asta. Edit Reason: )
Post: #1
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
Hello! ;D
I'm posting some useful functions I use in my tibia programs in MASM. I'll be adding some later. With this, I'm trying to show how easy is to do an useful proggy in ASM without getting you head crashed. Working with the macros you have in MASM its more like a high-level language! ***
First, you'll have to define some constants. Code: .constCode: Tibia_Hwnd PROTOCode: Tibia_Hwnd PROCCode: Memory_Read PROTO :DWORD,:BYTECode: Memory_Read PROC Address:DWORD,wordsize:BYTECode: Memory_Write PROTO :DWORD,:DWORD,:DWORDCode: Memory_Write PROC Address:DWORD,newvalue:DWORD,wordsize:DWORDThose codes are basic memory reading/writing under win32. Here some examples on how to use them: Code: invoke Memory_Read, PLAYER_HP, 4I hope it helps someone.
|
|||
|
02-06-2008, 06:00 AM
Post: #2
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
woah its alot easier then i thought !
nice shit! |
|||
|
02-06-2008, 06:50 AM
(This post was last modified: 02-07-2008 01:19 AM by Grob. Edit Reason: )
Post: #3
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
Isn't it a bit waste opening and closing the process handle as well as finding the window every single time you want to read from tibias memory? Nice work though, I really should look into using the macros more.
|
|||
|
02-07-2008, 01:55 AM
(This post was last modified: 02-07-2008 05:52 PM by Grob. Edit Reason: )
Post: #4
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
Asta, in your Tibia_Hwnd function I get a MASM error while compiling. It says something about invoke overwriting the eax value or something and refuses to create the exe. Was easily fixed with mov ecx, eax and using ecx in the GetWindowThreadProcessId call. I thought that might be something you could consider adding.
I got a bit interested in trying ASM with actually using invoke and .IF which is something I've never done. I wrote my entire chat server and Win32 GUI chat client with no macros (except for Iczelions RGB macro ).So, to get to the point. I've written a program that firstly reads the players id from the memory, and then uses the id to get the memory address to the player in the battlelist. 3rd it walks to a predetermined location in rookgaard. Using the updated TGoto which is now only 7 rows using invoke instead of like 30 rows pushing everything to the stack by my self. So now you can easily travel to any destination in Tibia. Now, if you or anyone else is interested in the code I'd be happy to post it. I've commented almost everything so it should be very easy to understand, as well as coding it in a way which makes it easy to use/understand better. Code: .code |
|||
|
02-07-2008, 03:57 AM
Post: #5
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
Thanks Grob, I think I've fixed it
![]() And about ur function, thats pretty nice! We should do a thread with some functions like that to hook up the ASM tibia programming ;D |
|||
|
02-07-2008, 09:40 AM
Post: #6
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
I'm kinda suspecting we're probably the onle ones interested in it but I enjoy creating smart functions so I'd be up for it.
|
|||
|
02-07-2008, 09:56 AM
Post: #7
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
I don't understand this coding but good that you do xD
|
|||
|
02-07-2008, 11:13 AM
(This post was last modified: 02-07-2008 11:18 AM by Grob. Edit Reason: )
Post: #8
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
This is the function I use to retrieve the address to the current player logged in to the client.
Since the function is taken out of its context it's hard to know how to use it. Firstly, you need to of course use OpenProcess to get access to the memory. Secondly you read your own player id (00613B70h) from the memory and thirdly call the function. So after doing this once, all you have to do to start walking with a character is set the GotoX,Y,Z to the correct coordinates then write 1 to IsWalking which will be the eax of TGetPlayerBLPointer + 76. It would be to much providing all the functions and I thought this would be the most interesting one. Code: invoke TGetPlayerBLPointer, Player.id ; eax will contain the memory addressCode: ; This function will find the pointer to the player in the battlelist |
|||
|
02-08-2008, 06:12 PM
Post: #9
|
|||
|
|||
|
Basic functions in MASM for tibia cheating
I had some problems reading a 2 byte value from my TMemoryRead so I added a few lines to clear the memory in 'buffer' before calling ReadProcessMemory. Not sure though, are there a simpler way of clearing 'buffer'?
Code: ; Clear the memory at buffers location |
|||
|
« Next Oldest | Next Newest »
|

![[-]](images/mint/collapse.gif)




