Go Back   RunUO - Ultima Online Emulation > RunUO > New Join Forum

New Join Forum So your new to RunUO and looking to work with people that are new, this is the place.

Reply
 
Thread Tools Display Modes
Old 06-07-2005, 08:07 PM   #1 (permalink)
Newbie
 
Join Date: Dec 2004
Age: 18
Posts: 43
Question New player starting point...

Well i been looking through the server scripts and i was wondering... what script and where can i change the starting point of a newly created account? like i know the co-ordinates and i would like to apply them... x
eragon is offline   Reply With Quote
Old 06-07-2005, 08:24 PM   #2 (permalink)
Forum Expert
 
Marak's Avatar
 
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 25
Posts: 429
Default

charactercreation.cs i believe (its been a while since i changed them) - there's acouple of fields because certain types of character spawn in different locations.
Marak is offline   Reply With Quote
Old 06-08-2005, 01:09 AM   #3 (permalink)
Newbie
 
Kiki's Avatar
 
Join Date: Feb 2005
Location: Florida
Age: 28
Posts: 93
Send a message via Yahoo to Kiki
Default

Code:
//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( "CityName", "LocationName", x, y, z, Map.FacetName );

			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;
		}

		/*	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;
				}
			}
		}	*/
If you look at the above script snippet from my modified CharacterCreation.cs You'll see what has to be changed.

Mine starts in a custom location in Ilshenar (we aren't using the tram/fel maps at this time) I commented out (the // at the beginning) the part that told the script to use young player starting locations.. and the Young player starting locations themselves (thats the /* all the way till you see the */)

The bold blue text is where you put in your custom info.

those symbols // and /* - */ tell the RunUO compiler not to read those parts of code. // is best for single lines and /* - */ is for multiple lines. You MUST close a /* with the */ but you don't have to close the //.
Kiki is offline   Reply With Quote
Old 06-08-2005, 01:48 PM   #4 (permalink)
Forum Expert
 
Tintamar's Avatar
 
Join Date: Feb 2005
Location: USA
Age: 30
Posts: 335
Default

You dont have to keep it so different professions start at different spots if you want ALL new players to start in same locaion just comment out one line and put your coords in the other line.


CharacterCreation.cs
Code:
			//CityInfo city = GetStartLocation( args, young );
			CityInfo city = new CityInfo( "Britain", "Bank", 3013, 1061, 0, Map.Trammel );
Just change the coords that are in bold. change city name and location too. My coords in bold aren't default
Tintamar is offline   Reply With Quote
Old 05-08-2006, 02:01 AM   #5 (permalink)
 
Join Date: May 2006
Age: 26
Posts: 5
Default

ya but what happens if it gives them the option to choose on map to get started ?
Tw1st3d_Dr4g0n is offline   Reply With Quote
Old 05-08-2006, 12:29 PM   #6 (permalink)
Forum Expert
 
Join Date: Feb 2006
Posts: 288
Default

Quote:
Originally Posted by Tw1st3d_Dr4g0n
ya but what happens if it gives them the option to choose on map to get started ?
Nothing, since the 'args' are being ignored, and that's what stores the CityInfo from the client start point selection screen.
Uhhhh is offline   Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5