I have a script that checks nearby values in memory from a reference address (obtained from a reference value that is unchanging). This is because the hack I am scripting has a bunch of encrypted values stored near each other in memory. These values each represent whether or not you have a weapon in your inventory.
My script is able to search the unchanging reference value and get the value of each address below it, one by one. Here are some parts of my code:
This part initiates where to start.
startaddress = REFERENCEADDRESSHERE
distance = startaddress
direction =1
This part moves a step.
distance = distance + direction
onaddress = startplace[1].address + offset
This part gets the value, address, flags, etc. of this address (the only way I know is to search for the address ... I wish there was a better way!
gg.clearResults()
gg.searchAddress(onaddress,0xFFFFFFFF)-- Idk how to get value from address other than searching address :(
onplace = gg.getResults(1)-- Only 1 result should come up since it is exact address
Now this code below is where my problem takes place.
onvalue = onplace.value -- Problem: IDK how to ensure it takes the the dword value only...
It gets the value, but IDK how to make it only get the dword value. What if there are multiple values and data types in this address?
We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.
Question
HorridModz
I have a script that checks nearby values in memory from a reference address (obtained from a reference value that is unchanging). This is because the hack I am scripting has a bunch of encrypted values stored near each other in memory. These values each represent whether or not you have a weapon in your inventory.
My script is able to search the unchanging reference value and get the value of each address below it, one by one. Here are some parts of my code:
This part initiates where to start.
This part moves a step.
This part gets the value, address, flags, etc. of this address (the only way I know is to search for the address ... I wish there was a better way!
Now this code below is where my problem takes place.
It gets the value, but IDK how to make it only get the dword value. What if there are multiple values and data types in this address?
Thanks a lot for reading!
7 answers to this question
Recommended Posts
Archived
This topic is now archived and is closed to further replies.