Chucl

Citizen
ServUO Version
Publish Unknown
Ultima Expansion
None
Hi, im using Runuo 2.2, can anyone guide me a little bit??

i would like to add a check: ''if player last login was more than 30 days''

thanks
 
Last edited:

Korasek

Citizen
Hi, im using Runuo 2.2, can anyone guide me a little bit??

i would like to add a check: ''if player last login was more than 30 days''

thanks
First step will be to establish how you want to know? Using a command? A gump? An automatic routine? at starup/periodically? Console command?
 

Korasek

Citizen
usually you know that once you figured out what "doing something out of it" is.. if is just sending an email, you can do an automated system on event a bit like the auto save or auto restart. If it's multiple choices, a command with notifications is what you need..

Think about it!
 

Kita

Squire
Code:
            var accounts = Accounts.GetAccounts();

            foreach (var account in accounts)
            {
                if (account.LastLogin < DateTime.Now - TimeSpan.FromDays(30))
                {
                    Console.WriteLine("This account is over 30 days since last seen : " + account.Username);
                }
            }