• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

[Znote AAC] Delete Character

GM Venom

Active Member
Joined
Jan 28, 2013
Messages
145
Reaction score
28
How can i set a time limit for deletion of characters?

For example: The character must have been offline 24 hours to make it possible to delete it.

I'm using Znote AAC.
 
Im your database, Players table, you have the lastlogin field. Just check it !

- - - Updated - - -

Im your database, Players table, you have the lastlogin field. Just check it !
 
You have to check this field for time limit.

The value returned generally represents the number of seconds since 00:00 hours, Jan 1, 1970 UTC (i.e., the current unix timestamp).

So you have to get the date one day before, convert it to seconds since 00:00 hours, Jan 1, 1970 UTC (i.e., the current unix timestamp) and compare with the lastLogin field. If the difference is bigger than 86400 seconds, you may delete the char.

Regards,
 
You have to check this field for time limit.

The value returned generally represents the number of seconds since 00:00 hours, Jan 1, 1970 UTC (i.e., the current unix timestamp).

So you have to get the date one day before, convert it to seconds since 00:00 hours, Jan 1, 1970 UTC (i.e., the current unix timestamp) and compare with the lastLogin field. If the difference is bigger than 86400 seconds, you may delete the char.

Regards,

Wrong.
I wonder how i can setup the time between delete in my Znote AAC.

The database is already working correctly!
 
Back
Top