OP

pglizerd

Member
ServUO Version
Publish Unknown
Ultima Expansion
High Seas
HELLO I have a problem with skill cap will only go to 100.0 when you take a scroll for 120 as soon as player logs of it resets skill to 100 when they log back on RUNNING SERVO UO 2.5
 
HELLO I have a problem with skill cap will only go to 100.0 when you take a scroll for 120 as soon as player logs of it resets skill to 100 when they log back on RUNNING SERVO UO 2.5

It is likely that ServUO is not saving the maximum skill level correctly. You should check the following.

Scripts/Mobiles/PlayerMobile.cs - find the Serialize and Deserialize methods:​

public override void Serialize( GenericWriter writer )
{
base.Serialize( writer );
writer.Write( (int) 4 ); // version

// Maximum skill levels should be saved
}

public override void Deserialize( GenericReader reader )
{
base.Deserialize( reader );
int version = reader.ReadInt();

// Maximum skill levels should be loaded
}

Quick Test Solution
As a temporary test, try this in PlayerMobile.cs:​

public override void OnLogin( LoginEventArgs e )
{
base.OnLogin( e );

// Temporary: Ensure skill caps persist
foreach ( Skill skill in Skills )
{
if ( skill.Base > 100.0 && skill.Cap == 100.0 )
{
skill.Cap = 120.0;
}
}
}

Write the exact version of the Servuo build?
 

Active Shards

Donations

Total amount
$0.00
Goal
$500.00
Back