purplemouse91
Wanderer
Ok thank you that worked so far now I will test it. But no crash.. Excellant
foreach ( Mobile pm in World.Mobiles.Values )
{
if ( pm is PlayerMobile )
{
try
{
if ( ((Account)pm.Account).GetTag( "Age of " + (pm.RawName) ) == null || ((Account)pm.Account).GetTag( "Age of " + (pm.RawName) ) == "")
{
//Ignore them. To make a check on the server and adjust the characters who have not recorded their age yet use the comand [VerifyAge
}
else
{
int age = int.Parse( ((Account)pm.Account).GetTag( "Age of " + (pm.RawName) ) );
((Account)pm.Account).SetTag( "Age of " + (pm.RawName), (age + 1).ToString() );
pm.SendMessage( Utility.RandomMinMax(2,600), "Congratulations! You are now {0} years old!", (age + 1) );
}
}
catch
private static TimeSpan AutoRenewDelay = TimeSpan.FromDays( 15 ); //How many Earth Days are equivalent to One Year for characters?
private static TimeSpan AutoRenewCheck = TimeSpan.FromMinutes( 30 ); //Check for new birthdays every 30 minutes.
Sythen;829208 said:This is the BEST update yet on this incredible system. Good Work!
public static bool AgeStatModEnabled = true; // Character's stats (Str,Dex,Int) are affected by the age?
double maxBonus = 15; //What is the bonus when the characters are at their best condition?
double topStrAge = 35; //At what age the characters have the best strength condition?
double topDexAge = 20; //At what age the characters have the best dexterity condition?
double topIntAge = 50; //At what age the characters have the best intelligence condition?
Two Wolves;829492 said:According to my calculations:
If humans in Britannia age at a normal rate, turning 21 makes you about 50 in Earth years.
Number of Earth Days per Britannian year = 73
Number of Earth Days per scale Earth year = 73/2.4, about 30
Britannia World Facts:
One hour in Britannia passes every 5 minutes on Earth.
Five years in Britannia passes every year on Earth.
Britannian days are divided into 24 Britannian hours.
Britannian years are divided into 12 Britannian months.
The release date of Ultima Online was in the Britannian year 289.
Ultima Online was released on September 25, 1997.
Intersting Consequences:
Britannian years are divided into 876 Britannian days.
Britannian months are divided into 73 Britannian days.
One Britannian year passes every 73 days on Earth.
One full day in Britannia passes every 2 hours on Earth.
The current date in Britannia (as of 2010-02-21) is the year 351.
The scale year in Britannia is 2.4 times longer then years on Earth.
If five years pass in Britannia the equivalent is 12 Earth years.
If 50 years have passed in Britannia, that scales to 120 Earth years.
Characters alive on the release date may have died of old age by now.
Time conversions,
Britannia to Earth:
Hour == 5 Minutes
Day == 2 Hours
Month == 146 hours (roughly six days)
Year == 73 Days
Earth to Britannia:
Hour == 12 Hours
Day == 12 Days
6 Days == 72 Days (roughly one month)
Month == 5 Months
Year == 5 Years