Sexy-Vampire;835570 said:can some one fix my problum of the stat ball not alowing you to change stats even if you set srt dex and int to corect total
public static bool CanRaise( Mobile from, Stat stat )
{
if ( !(from is BaseCreature && ((BaseCreature)from).Controlled) )
{
if ( from.RawStatTotal >= from.StatCap )
return false;
}
switch ( stat )
{
case Stat.Str: return ( from.StrLock == StatLockType.Up && from.RawStr < 125 );
case Stat.Dex: return ( from.DexLock == StatLockType.Up && from.RawDex < 125 );
case Stat.Int: return ( from.IntLock == StatLockType.Up && from.RawInt < 125 );
}
return false;
}
Sexy-Vampire;835592 said:is there a cap on the ball ? i have 500 stat cap and want the ball to set up to that ?
if (StrVal > 125 || StrVal < 25 || DexVal > 125 || DexVal < 25 || IntVal > 125 || IntVal < 25)
{
m.SendMessage("Stats can be between 25-125, please try again.");
break;
}
else if (StrVal + DexVal + IntVal != m.StatCap)
{
m.SendMessage("The stats you've entered equal {0}, your stats cannot exceed, nor be below {1}, please try again.", StrVal + DexVal + IntVal, m.StatCap);
break;
}
else
if ( ( ( str + dex + intel ) > m_From.StatCap ) || ( ( str + dex + intel ) < m_From.StatCap ) |
| ( str < 10 ) || ( dex < 10 ) || ( intel < 10 ) |
| ( str > [COLOR="Red"]100[/COLOR]) || ( dex >[COLOR="Red"] 100[/COLOR] ) || ( intel > [COLOR="Red"]100[/COLOR] ) )
if ( ( ( str + dex + intel ) > m_From.StatCap ) || ( ( str + dex + intel ) < m_From.StatCap ) |
| ( str < 10 ) || ( dex < 10 ) || ( intel < 10 ) |
| ( str > [COLOR="Red"]1000[/COLOR] ) || ( dex > [COLOR="Red"]1000[/COLOR] ) || ( intel > [COLOR="Red"]1000 [/COLOR]) )
public static bool SkillCapRewards = true; // assuming vet rewards are enabled, should total skill cap bonuses be awarded? (720 skills total at 4th level)
PackItem( new SkillBall() );
PackItem( new StatBall() );