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 


First time go into Lua and got stuck

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

Joined: 01 Mar 2020
Posts: 2

PostPosted: Sun Mar 01, 2020 12:22 pm    Post subject: First time go into Lua and got stuck Reply with quote

I am making a auto answer Cheat table for a game
I am trying Base on B address Value (Ans index)
change A address dropdown list (Chat Box address)
A address is pointer (string)
B address is 4 Bytes

Here is the concept
change (A address) Chat Box value dropdown list selection options (by dropdown Description)
by B address int when the script is on

here is the code I come up with
other code no really working

Code:

addresslist=getAddressList()
iq=addresslist_getMemoryRecordByDescription(addresslist, "Chat Box")
ans=addresslist_getMemoryRecordByDescription(addresslist, "Ans index")
print (ans.Value)


also I have try to google and look up wiki.cheatengine
I still can't found how to change table > value > set/change dropdown list selection options (by dropdown Description)

I have found out just changing the Value of the Chat Box but that is not what i want

it is easier just look at my CT
Code:
<?xml version="1.0" encoding="utf-8"?>
<CheatTable CheatEngineTableVersion="29">
  <CheatEntries>
    <CheatEntry>
      <ID>7305</ID>
      <Description>"Chat Box"</Description>
      <DropDownList ReadOnly="1" DescriptionOnly="1" DisplayValueAsItem="1">Apple:1
Boy:2
Cat:3
Dog:4
</DropDownList>
      <LastState RealAddress="1F720088"/>
      <VariableType>String</VariableType>
      <Length>99</Length>
      <Unicode>0</Unicode>
      <CodePage>0</CodePage>
      <ZeroTerminate>1</ZeroTerminate>
      <Address>"Storm.dll"+00057280</Address>
      <Offsets>
        <Offset>88</Offset>
        <Offset>0</Offset>
      </Offsets>
    </CheatEntry>
    <CheatEntry>
      <ID>7306</ID>
      <Description>"Ans index"</Description>
      <LastState Value="0" RealAddress="1F7C004C"/>
      <VariableType>4 Bytes</VariableType>
      <Address>"Storm.dll"+00057280</Address>
      <Offsets>
        <Offset>4C</Offset>
      </Offsets>
    </CheatEntry>
  </CheatEntries>
  <UserdefinedSymbols/>
</CheatTable>




i can't post link because i am new to here....
i.imgur oanmTId.png
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