Cheat Engine Forum Index Cheat Engine
The Official Site of Cheat Engine
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 


Change value

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
jarda
How do I cheat?
Reputation: 0

Joined: 05 Dec 2014
Posts: 2

PostPosted: Sun Feb 21, 2016 4:42 am    Post subject: Change value Reply with quote

Hello guys, sorry about the noob question xD

im trying to make a trainer for my wife but im a bit confused.

what is the best way to make it with lua?

Image:
i.imgur(dot)com/aIQBPqa.jpg

for example in my case i start with 18 moves, but later that value changes depends on your game level.

so the only way that i know to find that address is by search 4 bytes number 18 then do one move and do next scan with number 17. I get 4 values then i have to repeat the step replacing the 17 to 16 and then i get the right one.

By address is not possible to do because it is not fixed.

for ex the current address is: 0798FF24

I just want to make that because i don't want to be always repeating the 4 steps when i need to use hack xD

can someone give me a little hand ? Thanks.

once again sorry, but im just a starter Razz
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Sun Feb 21, 2016 5:23 am    Post subject: Reply with quote

Have a look into pointers.
Back to top
View user's profile Send private message
jarda
How do I cheat?
Reputation: 0

Joined: 05 Dec 2014
Posts: 2

PostPosted: Sun Feb 21, 2016 5:38 am    Post subject: Reply with quote

chris20194 wrote:
Have a look into pointers.


i got the pointers working but there is a way to put them in lua ?


Code:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable>
  <CheatEntries>
    <CheatEntry>
      <ID>1</ID>
      <Description>"pointerscan result"</Description>
      <LastState Value="20" Activated="1" RealAddress="12B2E1A4"/>
      <VariableType>4 Bytes</VariableType>
      <Address>"FlashPlayerPlugin_20_0_0_306.exe"+0004574C</Address>
      <Offsets>
        <Offset>60C</Offset>
        <Offset>50</Offset>
        <Offset>C4</Offset>
        <Offset>F4</Offset>
        <Offset>424</Offset>
      </Offsets>
    </CheatEntry>
    <CheatEntry>
      <ID>2</ID>
      <Description>"pointerscan result"</Description>
      <LastState Value="20" Activated="1" RealAddress="12B2E1A4"/>
      <VariableType>4 Bytes</VariableType>
      <Address>"FlashPlayerPlugin_20_0_0_306.exe"+0004913C</Address>
      <Offsets>
        <Offset>60C</Offset>
        <Offset>50</Offset>
        <Offset>C4</Offset>
        <Offset>20C</Offset>
        <Offset>24</Offset>
      </Offsets>
    </CheatEntry>
    <CheatEntry>
      <ID>3</ID>
      <Description>"pointerscan result"</Description>
      <LastState Value="20" Activated="1" RealAddress="12B2E1A4"/>
      <VariableType>4 Bytes</VariableType>
      <Address>"FlashPlayerPlugin_20_0_0_306.exe"+000942F0</Address>
      <Offsets>
        <Offset>60C</Offset>
        <Offset>50</Offset>
        <Offset>C4</Offset>
        <Offset>20C</Offset>
        <Offset>474</Offset>
      </Offsets>
    </CheatEntry>
  </CheatEntries>
</CheatTable>
Back to top
View user's profile Send private message
LastExceed
Expert Cheater
Reputation: 1

Joined: 05 Nov 2014
Posts: 130

PostPosted: Sun Feb 21, 2016 6:39 am    Post subject: Reply with quote

you can either read/write them directly
Code:
pointer1='[["Cube.exe"+003691C8]+394]+8C'
readInteger(pointer1)
writeInteger(pointer1, 1234567890)

or use the addresslist
Code:
addresslist=getAddressList()
pointer1=addresslist_getMemoryRecordByDescription(addresslist, "pointerMemoryRecord")
pointer1.Value=1234567890
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group

CE Wiki   IRC (#CEF)   Twitter
Third party websites