To set age on character creation, you can try that:
In the
EventSink_CharacterCreated method, find:
Code:
if ( newChar is PlayerMobile )
{
PlayerMobile pm = (PlayerMobile) newChar;
pm.Profession = args.Profession;
if ( pm.AccessLevel == AccessLevel.Player && ((Account)pm.Account).Young )
young = pm.Young = true;
}
And change to:
Code:
if ( newChar is PlayerMobile )
{
PlayerMobile pm = (PlayerMobile) newChar;
pm.Profession = args.Profession;
if ( pm.AccessLevel == AccessLevel.Player && ((Account)pm.Account).Young )
young = pm.Young = true;
// Added to set age at character creation.
int Age = 18;
((Account)pm.Account).SetTag( "Age of " + (pm.RawName), Age );
((Account)pm.Account).SetTag( "LastRenewAge " + (pm.RawName), (DateTime.Now).ToString() );
}
I didn't test, but it should work.
You could also set a random age. I don't remember the exactly code, but I think it would be something like this:
int Age = Utility.RandomMinMax( 18, 23 );
About the papperdoll, you mean displaying it under the character portrait or in the profile gump under the description?
If you don't want to use the command [Age, you would have to create a method to append the age to the title, if you want to show it under the character portrait (papperdoll) while not showing in the name.