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 11-26-2006, 11:43 PM   #1 (permalink)
Newbie
 
Hairy Pomegranate's Avatar
 
Join Date: Nov 2006
Age: 16
Posts: 14
Default help

when new players start, i would like them to start at a certain location where a skill stone is set up. where would i edit this?
Hairy Pomegranate is offline   Reply With Quote
Old 11-27-2006, 04:50 AM   #2 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

CharacterCreation.cs

ps: next time be more specific with your thread title. unspecific thread titles really, really annoy the mods (which you don't want to do)
__________________
Thistle is offline   Reply With Quote
Old 11-27-2006, 03:28 PM   #3 (permalink)
Forum Novice
 
DarkeWolf's Avatar
 
Join Date: Feb 2004
Age: 37
Posts: 342
Default

what you are looking for will be in the scripts folder, probably in the Misc folder. it's a file called CharacterCreation.cs
double click on it, and have it open with Notepad. If it doesn't open in notepad. close it, then click it once to highlight it. hold down the shift key and right click it. in the drop menu, pick Open With. then from the list, pick notepad.

Ok, your scripts may be somewhat different than mine, since I am running a MUCH older version of the server. But what you are looking for in charactercreation.cs is something like this-
Code:
//CityInfo city = args.City;
			CityInfo city = new CityInfo( "Britain", "Sweet Dreams Inn", 1496, 1628, 10 );

			newChar.MoveToWorld( city.Location, Map.Felucca );

			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}", city.City,
it should be about the middle of the page. but in notepad just go up to the top, click on search, then find. type in "location" (without the quotes) and if it doesnt find that line the first time, have it Find Next until it does.

Ok, the line that I put in bold is the one that you are gonna have to modify first. you will have to set it for the city, and location. after that, the numbers are coordinates. X, Y, and Z. If you've got those coordinates wrong, you'll show up someplace else.
For me, the easiest way to get those, is to go in game, and then mark a rune. type in [props and target the marked rune. once you get the properties window, you'll see Target (1018, 185, -12) or whatever. thats just what the rune that I did this on said. but those are the coordinates (from Your rune you mark) that you will want to add to the script. Also, right below that line where you change the coordinates, you will have to add which facet the teleport is to. without that, it wont do it. you have to type out the full name of the facet, just "Tram" or "Fel" won't work.
If you need help with the spelling, right below target on that rune props screen is Target Map. that will have the full name of the facet that the area is on.
DarkeWolf is offline   Reply With Quote
Old 11-28-2006, 12:18 AM   #4 (permalink)
Newbie
 
Hairy Pomegranate's Avatar
 
Join Date: Nov 2006
Age: 16
Posts: 14
Default

Quote:
Originally Posted by DarkeWolf
what you are looking for will be in the scripts folder, probably in the Misc folder. it's a file called CharacterCreation.cs
double click on it, and have it open with Notepad. If it doesn't open in notepad. close it, then click it once to highlight it. hold down the shift key and right click it. in the drop menu, pick Open With. then from the list, pick notepad.

Ok, your scripts may be somewhat different than mine, since I am running a MUCH older version of the server. But what you are looking for in charactercreation.cs is something like this-
Code:
//CityInfo city = args.City;
			CityInfo city = new CityInfo( "Britain", "Sweet Dreams Inn", 1496, 1628, 10 );

			newChar.MoveToWorld( city.Location, Map.Felucca );

			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}", city.City,
it should be about the middle of the page. but in notepad just go up to the top, click on search, then find. type in "location" (without the quotes) and if it doesnt find that line the first time, have it Find Next until it does.

Ok, the line that I put in bold is the one that you are gonna have to modify first. you will have to set it for the city, and location. after that, the numbers are coordinates. X, Y, and Z. If you've got those coordinates wrong, you'll show up someplace else.
For me, the easiest way to get those, is to go in game, and then mark a rune. type in [props and target the marked rune. once you get the properties window, you'll see Target (1018, 185, -12) or whatever. thats just what the rune that I did this on said. but those are the coordinates (from Your rune you mark) that you will want to add to the script. Also, right below that line where you change the coordinates, you will have to add which facet the teleport is to. without that, it wont do it. you have to type out the full name of the facet, just "Tram" or "Fel" won't work.
If you need help with the spelling, right below target on that rune props screen is Target Map. that will have the full name of the facet that the area is on.
alright. thx for the tut. it was really thorough =P i'll be able to do it really easy now. thx =)
Hairy Pomegranate is offline   Reply With Quote
Old 11-28-2006, 12:48 AM   #5 (permalink)
Forum Novice
 
DarkeWolf's Avatar
 
Join Date: Feb 2004
Age: 37
Posts: 342
Default

LOL yeah, sorry if that got long. habit I got from being a computer tech a few years back. I guess I just dont like for somebody to get into the middle of something, and then have to stop because of a question, and then have to wait for a long while to get an answer, when the info shoulda been given before they started.
anyways, good luck on getting that set to where you want it. Like I said before, your script may look different, as what I quoted was from the old beta36 version of the server.
DarkeWolf is offline   Reply With Quote
Old 11-28-2006, 10:51 PM   #6 (permalink)
Newbie
 
Hairy Pomegranate's Avatar
 
Join Date: Nov 2006
Age: 16
Posts: 14
Default

lol.

anyway, i have a couple of new questions. when i enter the [add menu, i cant seem to find spawners for vendors/monsters and such. is there a way to add spawns in game or do i have to do that in code?

also, i need help with a skill stone script. =P I want it to give 1 skill a 100%, 1 skill a 75%, and 1 skill a 50%. help would be appreciated.

oh, and i was wondering where can i edit max stats? and how can i edit my current stats in game? i tried [stats and [attributes, but i cant seem to find the command. theres one for skills, so i would think there would be 1 for stats.

thx for all your help =)
Hairy Pomegranate is offline   Reply With Quote
Old 11-28-2006, 11:36 PM   #7 (permalink)
Forum Novice
 
DarkeWolf's Avatar
 
Join Date: Feb 2004
Age: 37
Posts: 342
Default

ok, if you are talking about a general spawn, to populate the towns with the vendors that are supposed to be in there, its a command. type in [vendorgen

otherwise, there's not a specific spawner for each type of creature. you have to add each spawner, and then set it specifically with the spawn details that you want.

If you are talking about a worldspawn for monsters, you would prolly be better off doing it with Nerun's Distro. http://forums.runuo.com/showthread.p...ighlight=spawn

for runuo 2.0 http://forums.runuo.com/showthread.p...ghlight=distro

afraid that I cant help you out with the skill stones.

max stats would be in the charactercreation.cs file, in the scripts/misc folder. a line something like this- m.StatCap = 250; (remember I'm on an older version, your's may be slightly similar. 250 being the number you want to change to up or lower the statcap. (I used notepad and had it do a search for the term "statcap".
Thats IF you want to do that for ALL players. If you are just wanting to do it for yourself, type in [props and then target yourself. then flip thru the properties menus until you find the stat max.
I know there's a command for editing stats directly in game, tho I never go the hang of it. I personally do it thru the properties menu.
DarkeWolf is offline   Reply With Quote
Old 11-29-2006, 12:28 AM   #8 (permalink)
Newbie
 
Hairy Pomegranate's Avatar
 
Join Date: Nov 2006
Age: 16
Posts: 14
Default

whoa. sweet. thx for the info =P

now my graveyard is full of ghosts and ghouls =)

also, when they spawn, i want them to spawn right on top of the tile with the spawner, but when i went into the menu, it didnt have anything to edit that.
Hairy Pomegranate is offline   Reply With Quote
Old 11-29-2006, 12:43 AM   #9 (permalink)
Forum Expert
 
Thistle's Avatar
 
Join Date: Mar 2005
Posts: 1,155
Default

Do a [props on the spawner and look for homerange and spawnrange.
__________________
Thistle is offline   Reply With Quote
Old 11-29-2006, 02:50 PM   #10 (permalink)
Forum Novice
 
DarkeWolf's Avatar
 
Join Date: Feb 2004
Age: 37
Posts: 342
Default

Great! I'm glad to hear that you've got spawn now

Quote:
Originally Posted by Thistle
Do a [props on the spawner and look for homerange and spawnrange.
yes. under the properties menu for the spawner. Homerange is how far they will travel (in tiles) away from the spawner. meaning, how far they will walk around. Spawnrange is how far away that they will just "pop in" when they are spawned.
so you'd wanna set the spawnrange for 1, and then the homerange for however far that you want them to wander around.
DarkeWolf is offline   Reply With Quote
Old 11-30-2006, 10:45 AM   #11 (permalink)
Newbie
 
Hairy Pomegranate's Avatar
 
Join Date: Nov 2006
Age: 16
Posts: 14
Default

great. thx guys. 1 step closer to a running world =P

alright 1 more tincy tiny thing... how can i edit statgain? ive already made skillgain faster, but i also want to make statgain faster. thx for the help in advance =P
Hairy Pomegranate is offline   Reply With Quote
Old 11-30-2006, 11:48 AM   #12 (permalink)
Forum Master
 
Joeku's Avatar
 
Join Date: Feb 2005
Location: ShatteredSosaria.com
Posts: 9,260
Default

"Scripts/Misc/SkillCheck.cs":
Code:
		private static TimeSpan m_StatGainDelay = TimeSpan.FromMinutes( 15.0 );

		public static void GainStat( Mobile from, Stat stat )
		{
			switch( stat )
			{
				case Stat.Str:
				{
					if( (from.LastStrGain + m_StatGainDelay) >= DateTime.Now )
						return;

					from.LastStrGain = DateTime.Now;
					break;
				}
				case Stat.Dex:
				{
					if( (from.LastDexGain + m_StatGainDelay) >= DateTime.Now )
						return;

					from.LastDexGain = DateTime.Now;
					break;
				}
				case Stat.Int:
				{
					if( (from.LastIntGain + m_StatGainDelay) >= DateTime.Now )
						return;

					from.LastIntGain = DateTime.Now;
					break;
				}
			}

			bool atrophy = ( (from.RawStatTotal / (double)from.StatCap) >= Utility.RandomDouble() );

			IncreaseStat( from, stat, atrophy );
		}
Joeku 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