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!

~~HOW DO I~~

jman12345

Wanderer
~~HOW DO I~~

i know in the charactercreation.cs file but where and what do i have to change to make it where new players start with 100 of each stat?
 
K

Krazy_zack

Guest
Around line 208 change what you see there to reflect this code: (aka dont ADD this code CHANGE yours to look like this:)

[code:1]private static void FixStats( ref int str, ref int dex, ref int intel )
{
str = 100;
dex = 100;
intel = 100;
}

private static void FixStat( ref int stat, int diff )
{
stat += diff;

if ( stat < 50 )
stat = 100;
else if ( stat > 50 )
stat = 100;
}

private static void SetStats( Mobile m, int str, int dex, int intel )
{
FixStats( ref str, ref dex, ref intel );

if ( str < 10 || str > 60 || dex < 10 || dex > 60 || intel < 10 || intel > 60 || (str + dex + intel) != 80 )
{
str = 100;
dex = 100;
intel = 100;
}

m.InitStats( str, dex, intel );
}[/code:1]
 

David

Moderate
lol, thanks Krazy. I posted a very detailed answer... for the wrong question. But if you wanted 100 in each Skill, I got it all worked out! :D
 

jman12345

Wanderer
but theres seems to something different in this one

[code:1]str = vStr + 10;
dex = vDex + 10;
intel = vInt + 10;[/code:1]

on urs its just

str = 100;
dex = 100;
int = 100;
 
Top