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 


Prevent enabling the script if value of another address is..

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

Joined: 09 Feb 2017
Posts: 0

PostPosted: Mon Nov 28, 2016 9:57 am    Post subject: Prevent enabling the script if value of another address is.. Reply with quote

Hello. I have a simple script:
Code:
[ENABLE]
[[[Address]+40]+38]+70:
dd (int)1
[DISABLE]

that would be part of my public cheat table. But I need to add something that would prevent users to enable this script if value of another pointer [[Address]+80]+70 is not equal "0" or "8". (Because otherwise users might crash). Basically if value of [[Address]+80]+70 "0" or "8" then script above can be executed. If value is not "0" or "8" then prevent executing / enabling.
Back to top
View user's profile Send private message
Kavvman
Master Cheater
Reputation: 2

Joined: 17 Apr 2004
Posts: 316

PostPosted: Mon Nov 28, 2016 10:43 am    Post subject: Reply with quote

You can create a thread and check the values from there

Otherwise you will have to jack execution/control from game and check your pointers

_________________
...
Back to top
View user's profile Send private message
Dark Byte
Site Admin
Reputation: 458

Joined: 09 May 2003
Posts: 25287
Location: The netherlands

PostPosted: Mon Nov 28, 2016 10:48 am    Post subject: Reply with quote

{$lua}
local v=readInteger("[[Address]+80]+70")
if not ((v==0) or (v==8)) then
error('invalid value')
end
{$asm}

_________________
Do not ask me about online cheats. I don't know any and wont help finding them.

Like my help? Join me on Patreon so i can keep helping
Back to top
View user's profile Send private message MSN Messenger
DeletedUser412833
How do I cheat?
Reputation: 1

Joined: 09 Feb 2017
Posts: 0

PostPosted: Mon Nov 28, 2016 11:03 am    Post subject: Reply with quote

Dark Byte wrote:
{$lua}
local v=readInteger("[[Address]+80]+70")
if not ((v==0) or (v==Cool) then
error('invalid value')
end
{$asm}


Thank you! Works perfectly.
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