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 


How to create a connection in cheat tables

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

Joined: 14 Feb 2023
Posts: 1

PostPosted: Tue Feb 14, 2023 4:02 pm    Post subject: How to create a connection in cheat tables Reply with quote

Hello, I want to automatic a table.
So if this byte has taken the value activate this cheat.
For example, in the Picture,
if goal scored for home Team == 8
Controle Home Team true
smth. like that
and it would be best if you could also change this directly, i.e. whether it is the home team or the away team.
Cheat Table from github:
xAranaktu/FIFA-22-CM-Cheat-Table

Would this work?
[ENABLE]
intUserController:
dd (int)1
intCPUOneController:
dd (int)0
intCPUTwoController:
dd (int)-1

[DISABLE]
local homeGoalsAddress = getAddressSafe("Home - Goals scored")
if readInteger(homeGoalsAddress) >= 8 then
local controlHomeScript = getScript('Control Home Team')
if controlHomeScript ~= nil then
controlHomeScript.Active = true
end
end



Fifa Cheat Table.png
 Description:
Cheat table github:
xAranaktu/FIFA-22-CM-Cheat-Table
 Filesize:  20.13 KB
 Viewed:  1360 Time(s)

Fifa Cheat Table.png


Back to top
View user's profile Send private message
Frouk
Grandmaster Cheater
Reputation: 5

Joined: 22 Jun 2021
Posts: 512

PostPosted: Wed Feb 15, 2023 4:40 am    Post subject: Re: How to create a connection in cheat tables Reply with quote

Wollgamer wrote:
Hello, I want to automatic a table.
So if this byte has taken the value activate this cheat.
For example, in the Picture,
if goal scored for home Team == 8
Controle Home Team true
smth. like that
and it would be best if you could also change this directly, i.e. whether it is the home team or the away team.
Cheat Table from github:
xAranaktu/FIFA-22-CM-Cheat-Table

Would this work?
[ENABLE]
intUserController:
dd (int)1
intCPUOneController:
dd (int)0
intCPUTwoController:
dd (int)-1

[DISABLE]
local homeGoalsAddress = getAddressSafe("Home - Goals scored")
if readInteger(homeGoalsAddress) >= 8 then
local controlHomeScript = getScript('Control Home Team')
if controlHomeScript ~= nil then
controlHomeScript.Active = true
end
end

no, i think not. getAddressSafe can't get address from memory record
Back to top
View user's profile Send private message
LeFiXER
Grandmaster Cheater Supreme
Reputation: 20

Joined: 02 Sep 2011
Posts: 1069
Location: 0x90

PostPosted: Wed Feb 15, 2023 5:06 am    Post subject: Reply with quote

Something like this:
Code:

[ENABLE]
{$LUA}
if syntaxcheck then return end

local home_script = AddressList.getMemoryRecordByDescription('Home - Goals scored')
local home_team = AddressList.getMemoryRecordByDescription('Control Home Team')

local t = createTimer(getMainForm())
t.Interval = 100
t.OnTimer = function()
                     if (home_team == nil) or (home_script == nil) then t.destroy(); t = nil end
                     if home_script.Value >= '8' then
                       home_team.Active = true
                     else
                       home_team.Active = false
                   end
{$ASM}
[DISABLE]
{$LUA}
if syntaxcheck then return end
t.destroy()
t = nil
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 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