got a little problem here which i need a bit of help for.
in GameNPC.cs we got this function
- Code: Select all
public virtual void AutoSetStats()
{
Strength = (short)( 20 + Level * 6 );
Constitution = (short)(30);
Dexterity = (short)(30);
Quickness = (short)(30);
Intelligence = (short)(30);
Empathy = (short)(30);
Piety = (short)(30);
Charisma = (short)(30);
}
- Code: Select all
namespace DOL.GS.Scripts
{
/// <summary>
/// This class overrides all stats for all Non Player Characters like
/// Monsters, Merchants, Guards, Steeds ...
/// </summary>
public class GameNPCOverride : GameNPC
{
private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
const short AutoSetStatsMultiplier = 11;
public override void AutoSetStats()
{
Strength = (short)(20 + Level * 10 * AutoSetStatsMultiplier);
Quickness = (short)(60 + Level * 3);
Constitution = (short)(60 + Level * 3);
Dexterity = (short)(60 + Level * 3);
Intelligence = (short)(60 + Level * 3);
Empathy = (short)(60 + Level * 3);
Piety = (short)(60 + Level * 3);
Charisma = (short)(60 + Level * 3);
}
}
}
Where is the error in my way of thinking ? As far as i know you can override a virtual function, thus why can't the proggie find Autosetstats in gamenpc.cs for override ?
I am greatful for any advice.
kind regards
Argo
