Go Back   RunUO - Ultima Online Emulation > RunUO > RunUO Post Archive

RunUO Post Archive The Archvie

Reply
 
Thread Tools Display Modes
Old 03-20-2003, 08:06 PM   #1 (permalink)
Forum Expert
 
FallsUpStairs's Avatar
 
Join Date: Oct 2002
Posts: 508
Default How do I let people choose the city they start in?

How do I let people choose the city they start in?

This is very very easy all you do is change one little line in your scripts...

First off, you need to open the file called CharacterCreation.cs with your editor. (Located at: YourRunUOFolder\Scripts\Misc\)

Next, you need to find this code...
Code:
			//CityInfo city = args.City;
			CityInfo city = new CityInfo( "Britain", "Sweet Dreams Inn", 1496, 1628, 10 );
Now, the last thing you need to do in order to let people go to other towns besides Britain, is delete the // before the first CityInfo, and replace/add the // before the second CityInfo. The result is this:
Code:
			CityInfo city = args.City;
			//CityInfo city = new CityInfo( "Britain", "Sweet Dreams Inn", 1496, 1628, 10 );
How do I make people start at a custom location?

Almost as simple as the first one. In the same file, and the same location, as we were in this last example, you change this code...
Code:
			CityInfo city = new CityInfo( "Britain", "Sweet Dreams Inn", 1496, 1628, 10 );
To reflect the location you want. For example:

Code:
			CityInfo city = new CityInfo( "NewbieArea", "My New Player Location", x, y, z );
Where X is the X coordinate, Y is the Y coordinate, and Z is the Z coordinate of the location of where they start. When you do this, however, make sure that you have the correct spacing, and you do NOT have the second line commented out. (// Should NOT be before it.)

Example:
Code:
			//CityInfo city = args.City;
			CityInfo city = new CityInfo( "CustomTown", "My Custom Place", 1234, 1234, 0 );
FallsUpStairs 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