![]() |
Age count - Printable Version +- SphereCommunity (https://forum.spherecommunity.net) +-- Forum: Sphere 0.56d (/Forum-Sphere-0-56d) +--- Forum: Script Help (/Forum-Script-Help) +--- Thread: Age count (/Thread-Age-count) Pages: 1 2 |
Age count - Leonidas - 11-10-2016 07:34 AM Got a little script that shows your characters age by days. But I'm wanting to have this script show weeks,months, and years, instead of x amount of days. How would I go about doing that? Thank you Code: [EVENTS e_age] RE: Age count - Kanibal - 11-10-2016 07:45 AM (11-10-2016 07:34 AM)Leonidas Wrote: Got a little script that shows your characters age by days. But I'm wanting to have this script show weeks,months, and years, instead of x amount of days. How would I go about doing that? Thank you <account.totalconnecttime> did not work anymore? RE: Age count - Leonidas - 11-10-2016 08:15 AM How does that count? By seconds, hours, days? RE: Age count - Kanibal - 11-10-2016 08:23 AM (11-10-2016 08:15 AM)Leonidas Wrote: How does that count? By seconds, hours, days?Seconds. Here is PHP function that shows server uptime. MySQL value $row['timeup'] = <serv.timeup>. Rewrite it and be happy Code: <?php RE: Age count - Leonidas - 11-10-2016 08:29 AM Not really looking for a server uptime. Using this age function as a way to tell players their age, give vet bonuses, noob protection and what not. The script I have now works fine, I'm just wanting it to show more. Player plays for 7 days, types .age, "You are now 1 week old." Player plays for 9 days, types .age, "You are now 1 week and 2 days old." Same with months and years. I know that php code will work for a server status, but I'm just looking for a basic in-game command. RE: Age count - Kanibal - 11-10-2016 08:48 AM (11-10-2016 08:29 AM)Leonidas Wrote: I'm just looking for a basic in-game command.Just one question, 31 days = 1 months, or 31 days = 1 months and 1day, or 31 days = 1 months and 3 days (February)? ![]() RE: Age count - Leonidas - 11-10-2016 09:05 AM I'd probably just use 30 days. RE: Age count - Kanibal - 11-10-2016 09:12 AM (11-10-2016 09:05 AM)Leonidas Wrote: I'd probably just use 30 days. 365 days in one year? ![]() RE: Age count - Leonidas - 11-10-2016 03:39 PM Are you trying to be sarcastic? RE: Age count - Kanibal - 11-10-2016 08:59 PM (11-10-2016 03:39 PM)Leonidas Wrote: Are you trying to be sarcastic? I'm trying to tell you that is no "basic in-game command" like this, and i'ts a bad idea. ![]() |