[COLOR=Red]//[/color]CityInfo city = GetStartLocation( args, young );
//This is the section you edit for a custom starting location. By default they have Brit. Inn here.
CityInfo city = new CityInfo( [color=blue][b]"CityName", "LocationName", x, y, z, Map.FacetName[/b][/color] );
newChar.MoveToWorld( city.Location, city.Map );
Console.WriteLine( "Login: {0}: New character being created (account={1})", args.State, ((Account)args.Account).Username );
Console.WriteLine( " - Character: {0} (serial={1})", newChar.Name, newChar.Serial );
Console.WriteLine( " - Started: {0} {1} in {2}", city.City, city.Location, city.Map.ToString() );
new WelcomeTimer( newChar ).Start();
}
public static bool VerifyProfession( int profession )
{
if ( profession < 0 )
return false;
else if ( profession < 4 )
return true;
else if ( Core.AOS && profession < 6 )
return true;
else if ( Core.SE && profession < 8 )
return true;
else
return false;
}
[COLOR=Red]/*[/color] private static CityInfo GetStartLocation( CharacterCreatedEventArgs args, bool isYoung )
{
switch ( args.Profession )
{
case 4: //Necro
{
return new CityInfo( "Umbra", "Mardoth's Tower", 2114, 1301, -50, Map.Malas );
}
case 5: //Paladin
{
return new CityInfo( "Haven", "Uzeraan's Mansion", 3578, 2589, 0, Map.Trammel );
}
case 6: //Samurai
{
return new CityInfo( "Samurai DE", "Haoti's Grounds", 368, 780, -1, Map.Malas );
}
case 7: //Ninja
{
return new CityInfo( "Ninja DE", "Enimo's Residence", 414, 823, -1, Map.Malas );
}
default:
{
if( isYoung )
return new CityInfo( "Haven", "Uzeraan's Mansion", 3582, 2587, 0, Map.Trammel );
else
return args.City;
}
}
} [COLOR=Red]*/[/color]