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 


Lua io properties

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

Joined: 11 Nov 2015
Posts: 1
Location: ddd

PostPosted: Tue Jun 27, 2017 10:44 am    Post subject: Lua io properties Reply with quote

Hello, I am creating a trainer where I want to make the user to only be allowed to use a specific hack 10 times
My solution is this:::


when the user activates the hack, the trainer checks if the text file exists(call I "userdata.txt")
If it exists, it reads the number/integer in it and increments it
If it reads it and the value is equals or more than 10, the hack will not be activated


If it doesn't, it creates the text file and sets the value to 0 then in future, when the hack is activated again, the 0 increments, etc etc

I know how to do this in c#, but the reason I cannot do it is because I don't know how to create a trainer in c#


If anyone knows how to do this, plzz assist me, I will be very grateful
Also try to simplify the answer cause I am a noob in lua
Thnx in advanced

P.S, I think the answer has something to do with lua's IO properties just like in c# thats why I used it in the topic
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
FreeER
Grandmaster Cheater Supreme
Reputation: 53

Joined: 09 Aug 2013
Posts: 1091

PostPosted: Tue Jun 27, 2017 11:11 am    Post subject: Reply with quote

then google something like "lua read write file" and do some testing? Or if you're a noob in lua and you're less of a noob in C# because you already know how to do part of it in C# then why not find some tutorials for creating a trainer in C# (there are dozens of them)?

Personally I never cared for the trainers that only let you do something n times back before I knew how to use CE myself so I'm not really interested in helping you with this but... those are some fairly obvious things anyone could tell you.
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