|
||
|
|||||||
| New Join Forum So your new to RunUO and looking to work with people that are new, this is the place. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
Newbie
Join Date: Dec 2004
Age: 18
Posts: 43
|
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 |
|
|
|
|
|
#2 (permalink) |
|
Forum Expert
Join Date: Mar 2005
Location: Firmly Seated Infront of the Computer.
Age: 25
Posts: 429
|
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.
|
|
|
|
|
|
#3 (permalink) |
|
Newbie
|
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;
}
}
} */
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 //. |
|
|
|
|
|
#4 (permalink) |
|
Forum Expert
Join Date: Feb 2005
Location: USA
Age: 30
Posts: 335
|
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 ); |
|
|
|
|
|
#6 (permalink) | |
|
Forum Expert
Join Date: Feb 2006
Posts: 288
|
Quote:
|
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|