Serj
Member
Hi
I would like to set fix Stats depending which prof. player choose in CharacterCreation gump
So it works with race like this
But not with profession
I tryied to use
if(args.profession==1) or
if (prof==1) or
if (pm.profession==1)
nothing seems to work
I would like to set fix Stats depending which prof. player choose in CharacterCreation gump
So it works with race like this
C#:
private static void SetStats(Mobile m, NetState state, int str, int dex, int intel)
{
var max = state.NewCharacterCreation ? 225 : 250;//
FixStats(ref str, ref dex, ref intel, max);
if (str < 10 || str > 60 || dex < 10 || dex > 60 || intel < 10 || intel > 60 || (str + dex + intel) != max)
{
if( m.Race==Race.Elf)
{
str = 70;//
dex = 25;//
intel = 100;//
}
else
{
str = 100;//
dex = 10;//
intel = 100;//
}
}
m.InitStats(str, dex, intel);
}
I tryied to use
if(args.profession==1) or
if (prof==1) or
if (pm.profession==1)
nothing seems to work