Go Back   RunUO - Ultima Online Emulation > RunUO > Custom Script Release Archive

Custom Script Release Archive This is a pre-script database archive of what our users had released.

 
 
Thread Tools Display Modes
Old 08-14-2005, 06:18 PM   #1 (permalink)
Forum Novice
 
Join Date: Dec 2003
Location: South-Africa
Age: 20
Posts: 165
Lightbulb UO:SE Char creation on AOS

When creating a Samurai or Ninja on an UO:SE enabled shard, using an AOS client, you start in a house/park-like place in Malas, but sadly, only SE client can see those areas, so AOS players start in a black void.

Use this "fix" to make them start somewhere else IF they are NOT using the UO:SE client.

Do the following in Misc/CharacterCreation.cs

Step 1
Find this:
Code:
		private static CityInfo GetStartLocation( CharacterCreatedEventArgs args, bool isYoung )
		{
(Round about at line 681)
and add :
Code:
			NetState state = args.State;
so that it looks like this:
Code:
		private static CityInfo GetStartLocation( CharacterCreatedEventArgs args, bool isYoung )
		{
			NetState state = args.State;
Step 2
Change at case 6 (Samurai) and case 7 (Ninja) from:
Code:
				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 );
				}
TO
Code:
				case 6:	//Samurai
				{
					if ((state.Flags & 0x10) != 0)// Is UOSE?
					{
						return new CityInfo( "Samurai DE", "Haoti's Grounds", 368, 780, -1, Map.Malas );
					}
					else
					{
						return new CityInfo( "Haven", "Uzeraan's Mansion", 3582, 2587, 0, Map.Trammel );
					}
				}
				case 7:	//Ninja
				{
					if ((state.Flags & 0x10) != 0)// Is UOSE?
					{
						return new CityInfo( "Ninja DE", "Enimo's Residence", 414,	823, -1, Map.Malas );
					}
					else
					{
						return new CityInfo( "Haven", "Uzeraan's Mansion", 3582, 2587, 0, Map.Trammel );
					}
				}
Or download the attached modified Distro.

Thanks to:
Zippy- • Help via IRC

Installation:
Make a backup / rename your current CharacterCreation.cs
Place this one in your Custom Folder.
Easy =)

I hope this helps!
Attached Files
File Type: cs CharacterCreation.cs (39.5 KB, 35 views)
DaLaw66 is offline  
 

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 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC5