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 


Check For Date Using CE?

 
Post new topic   Reply to topic    Cheat Engine Forum Index -> Cheat Engine Lua Scripting
View previous topic :: View next topic  
Author Message
Akiros
Newbie cheater
Reputation: 0

Joined: 11 Apr 2020
Posts: 24
Location: my house

PostPosted: Sat May 02, 2020 10:33 pm    Post subject: Check For Date Using CE? Reply with quote

Hi Im Making A Premium Trainer For My Friends and I Want it so that when they
enter a security Code the trainer will check the date, and if it is over entered number of days (ex : CE checks if its may 15, and if it is ce Wont let you use the mentioned security code. But if it isnt you can still use)
if there is any better way to check for date please tell me
thanks in advance!

_________________
help pls im noob Sad
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun May 03, 2020 1:53 am    Post subject: Reply with quote

What is 'Premium Trainer' means?

Get date and month
Code:
print(os.date("%B-%d"))


See these:
https://forum.cheatengine.org/viewtopic.php?t=584342
https://www.cheatengine.org/forum/viewtopic.php?t=580938&sid=96e7fdc843bb9eeb5c9f61e02edac1c8

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
AylinCE
Grandmaster Cheater Supreme
Reputation: 37

Joined: 16 Feb 2017
Posts: 1549

PostPosted: Sun May 03, 2020 12:21 pm    Post subject: Reply with quote

Although it is not a safe option, the following code will help.



Code:
--function CETimer1Timer(sender)
local check = '05/01/20' --Date to expire
--print("check: "..check)
local count = os.date("%x") --Current time
--print("count: "..count)

--Add the remaining days account.
d1=string.match(check, '/(.*)/')
d2=string.match(count, '/(.*)/')
local ind = tonumber(d1) - tonumber(d2) --Time remaining account.
local ind1 = tonumber(d2) - tonumber(d1) --Finished time calculation.

if check>count then
print("Hello Word! To closing; "..ind.." stayed")
--UDF1.CETimer1.Enabled=false
else
print("Not Hello Word! Time expired "..ind1.." day ago!")
--UDF1.CETimer1.Enabled=false
end
--end


Keep in mind; If the user changes the PC date, the instructor will always remain open.

You may want to try it;
Here is a secure Trainer patency check and user encryption method.

Click on my signature.

_________________
Hi Hitler Different Trainer forms for you!
https://forum.cheatengine.org/viewtopic.php?t=619279
Enthusiastic people: Always one step ahead
Do not underestimate me Master: You were a beginner in the past
Back to top
View user's profile Send private message Visit poster's website MSN Messenger
Corroder
Grandmaster Cheater Supreme
Reputation: 75

Joined: 10 Apr 2015
Posts: 1668

PostPosted: Sun May 03, 2020 6:03 pm    Post subject: Reply with quote

Aylin wrote:

Keep in mind; If the user changes the PC date, the instructor will always remain open.


That is why we do not use local time but more secure use EPOCH time if understand what is it.
If gives a trial period to an app for marketing reason, then that is very good. But if not for the market reason, for me that just a kind of a joke. Laughing

_________________
Stealing Code From Stolen Code...
And Admit It.. Hmmm....Typically LOL
Back to top
View user's profile Send private message
exohaxor
Expert Cheater
Reputation: 1

Joined: 02 Sep 2018
Posts: 101

PostPosted: Sun May 03, 2020 6:08 pm    Post subject: Reply with quote

do you have a discord akiros if yes then add me xeome#2188
_________________
hi
Back to top
View user's profile Send private message
Akiros
Newbie cheater
Reputation: 0

Joined: 11 Apr 2020
Posts: 24
Location: my house

PostPosted: Sun May 03, 2020 9:04 pm    Post subject: wow Reply with quote

@exohaxor im already in your obfuscator server.

@aylin, Your Signature Was VERY Helpful and I Understand the Premise. I Also Made the google docs thing and everything yet it still doesnt work D:
I Tweaked the Code a little to make ce print the results and Instead of the Numbers I Put in the Doc it was just a bunch of random Numbers.
I Put the Link I Made Into CE And everything still doesnt work.



capture.PNG
 Description:
 Filesize:  69.72 KB
 Viewed:  1745 Time(s)

capture.PNG



_________________
help pls im noob Sad
Back to top
View user's profile Send private message AIM Address Yahoo Messenger MSN Messenger
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