Nabolas
Member
- ServUO Version
- Publish 57
- Ultima Expansion
- Endless Journey
So I am trying to make it where all potion buffs like Agility potion will give a longer timer based on the drinker's alchemy potion. Wanting to get around 15 minute buff for a 100 alchemist. Working on making crafting skills worthwhile for people who are hunting...
Only thing I have edited is BasePotion.cs, I have changed the TimeSpan Scale to the following :
No compile errors...happy dance! Unfortunately, the skill bonus didn't work
any tips would be awesome!
Only thing I have edited is BasePotion.cs, I have changed the TimeSpan Scale to the following :
BasePotion.cs:
public static TimeSpan Scale(Mobile m, TimeSpan v)
{
if (!Core.AOS)
return v;
double enhancePotionsValue = EnhancePotions(m);
double alchemyBonus = m.Skills.Alchemy.Fixed / 9.0; // This gives a 0.1% increase per skill point
double scalar = 1.0 + (0.01 * enhancePotionsValue) + alchemyBonus;
return TimeSpan.FromSeconds(v.TotalSeconds * scalar);
}
No compile errors...happy dance! Unfortunately, the skill bonus didn't work
any tips would be awesome!