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 do I set a..

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine
View previous topic :: View next topic  
Author Message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Mon Feb 08, 2016 6:48 pm    Post subject: How do I set a.. Reply with quote

How do I set a value in my case player coordinates, but not have them activate UNTIL I check the checkbox I do whatever, (not asking for hotkeys)
ty.
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 08, 2016 7:24 pm    Post subject: Reply with quote

Code:
[ENABLE]
cheat_enable:
db 1

[DISABLE]
cheat_enable:
db 0


In your primary script:

Code:
globalalloc(cheat_enable,4)
//code
cmp byte ptr [cheat_enable],1
je cheat
Back to top
View user's profile Send private message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Mon Feb 08, 2016 7:38 pm    Post subject: Reply with quote

++METHOS wrote:
Code:
[ENABLE]
cheat_enable:
db 1

[DISABLE]
cheat_enable:
db 0


In your primary script:

Code:
globalalloc(cheat_enable,4)
//code
cmp byte ptr [cheat_enable],1
je cheat


Thanks, Just wondering;
Is cheat engine more ASM or more lua? because I know lua way better then ASM
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 08, 2016 7:41 pm    Post subject: Reply with quote

CE supports both. If you want to know how to do the above with LUA, someone else will have to chime in because I am stupid.

Meanwhile, you can check main.lua in the CE sub-directory for a guide.
Back to top
View user's profile Send private message
Ghosting
Advanced Cheater
Reputation: 0

Joined: 05 Feb 2016
Posts: 54
Location: 127.0.0.1

PostPosted: Mon Feb 08, 2016 8:00 pm    Post subject: Reply with quote

++METHOS wrote:
CE supports both. If you want to know how to do the above with LUA, someone else will have to chime in because I am stupid.

Meanwhile, you can check main.lua in the CE sub-directory for a guide.


I've tried too search for tutoriels on CELua but can't find one that are good..
(note, I have seen them, just most are not very well.)
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Zanzer
I post too much
Reputation: 126

Joined: 09 Jun 2013
Posts: 3278

PostPosted: Mon Feb 08, 2016 8:11 pm    Post subject: Reply with quote

Code:
{$lua}
[ENABLE]
writeBytes("cheat_enable", 1)

[DISABLE]
writeBytes("cheat_enable", 0)

Code:
if readBytes("cheat_enable", 1) == 1 then
  -- dunno
end
Back to top
View user's profile Send private message
++METHOS
I post too much
Reputation: 92

Joined: 29 Oct 2010
Posts: 4197

PostPosted: Mon Feb 08, 2016 8:42 pm    Post subject: Reply with quote

The main.lua is very CE-specific but should be easily understood if you already know LUA and have an understanding about what CE does. Most of the common and practical applications can be found by just reading through the forum...not necessarily in a tutorial. If you have a question about how to do something, just ask.
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