Jump to content
  • 0

How to create a Script for Game that requires Human knowledge.


Deadpullowo

Question

Like I can hack a game manually..

 

Process is this...  

》 Search for max HP value before fight

》 Over 800 results

》wait to take damage and hp decrease

》 Filter decreased value 

》 Some garbage results + Figure out HP from Bar and max..

》 freeze Hp value..

 

How can i automate in script??

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Scroll through the memory addresses. Do offset and find a group of values that stay constant for every startup. Once you found the useful group search values, code it into script and do offset inside script. Everything run automated. 

Link to comment
Share on other sites

41 minutes ago, ItsSC said:

Scroll through the memory addresses. Do offset and find a group of values that stay constant for every startup. Once you found the useful group search values, code it into script and do offset inside script. Everything run automated. 

Hey thanks.. I couldnt figure out offsets.

Game prolly allocates so many HP value to combat hacking...

 

 

But i noticed a pattern.. the actual max HP value is always before one constant

Dword..

So its like this..

 

A8b5799c   -120Dword

A8b579a0  - Max hp value. In double.(known)

A8b578a4 - some garbage value

A8b579a8 - 0 double.. ( this is energy ) found it too yeah.

 

Whats the script code to search this pattern?

 

Link to comment
Share on other sites

Assume you do not open value format of Word and Byte. 
Then each address apart are 4 offset difference. 

Or you can go through calculation 
A8b5799c - A8b579a0 = FFFF FFFF FFFF FFFC which is -4 in decimal.
This means A8b579a0 is one address above A8b5799c .

After knowing this concept, apply it to script.

(I continue calculation here)

A8b5799c-A8b578a4 =0xF8 (248 in decimal)

A8b5799c-A8b579a8=-12

Now we use A8b5799c (120 DWORD) as main value. 
 

gg.searchNumber("??E;120;0E::13",4)
gg.refineNumber("120",4)
for i, v in ipairs (gg.getResult(100)) do 
a= {	
    {v.address - 4},
    {v.address + 8},
    {v.address + 248},
    {v.address + 0 }
}
end

 

Link to comment
Share on other sites

Part 2 
The script is now having the values of the address with offset -4,+8 and +248 of A8b5799c.
Remember that , I had set "a" as table to store these 3 values. 
Now, check if the value fulfill what you want.
 

if a[1] == Garbage value and a[2] == "0E" and a[3] == Maximum hp value then 
  gg.addListItems(a)
  break
end

Now, you have all these values, you can now edit the value.

a[4].value= 9999999
a[4].type = 4 --4 is dword
gg.setValues(a)

 

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

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.