RunUO Community

This is a sample guest message. Register a free account today to become a member! Once signed in, you'll be able to participate on this site by adding your own topics and posts, as well as connect with other members through your own private inbox!

Allowing to set body and bodymod ingame

Lichtblitz

Sorceror
Allowing to set body and bodymod ingame

Changes are to Body.cs.

Add the Parseable attribute to the Body struct:
PHP:
	[Parsable]
	public struct Body
	{


Add the following method to the Body struct:

PHP:
		public static Body Parse(string value)
		{
			//no need to try and catch - Int32.Parse already throws meaningful exception
			return new Body( Int32.Parse( value ) );
		}

The property "BodyValue" is not necessary any more since it only provided a work-around. I think it could be removed with this mod.
 
Top