ServUO Version
Publish 57
Ultima Expansion
The Second Age
Howdy!

So I added a stat mod, using AddStatMod(), a cc from another one I found in the code..

C#:
from.AddStatMod(new StatMod(StatType.Str, modName + "Str", 5, TimeSpan.FromMinutes(120)));

After 2 minutes it was still ON, so I changed it for this

C#:
from.AddStatMod(new StatMod(StatType.Str, modName + "Str", 5, TimeSpan.FromMinutes(2)));

which makes more sens, BUT still after 3 minutes it was still on..

Sooo.. I tested the item with the mods I found already in the code

C#:
from.AddStatMod(new StatMod(StatType.Str, modName + "Str", 5, TimeSpan.FromSeconds(120)));
from.AddStatMod(new StatMod(StatType.Dex, modName + "Dex", 5, TimeSpan.FromSeconds(120)));
from.AddStatMod(new StatMod(StatType.Int, modName + "Int", 5, TimeSpan.FromSeconds(120)));

Guess what? Bingo! Mod are applied but are not removed after delay..

It can be removed by setting a timer and using RemoveStatMod() but..why a delay at first if the mod needs to be removed manually?

Anyone could help on this one? Pub57 bug?

-Thanks
 
Back