Getting this error.

1583712139135.png

public override void Damage(int amount, Mobile defender) //-----issue line Mobile defender)
{
base.Damage(amount, defender);
AddKP(defender);

CheckControlSlots();
}

I'm a rookie, so be easy on me.
 
Well it basically tells you that the method you want to override does not exist, at least not with that return value you had.
The void is a return value that returns nothing, so changing that back to int, and then switching around the method body you get this

C#:
public override int Damage(int amount, Mobile defender)
{
    AddKP(defender);

    CheckControlSlots();
    return base.Damage(amount, defender);
}
 
Yes under the scripts folder so it would be, ServUO/Scripts/Custom but it seems you will have to fix a lot of the scripts to make it work with the newest version.
 
Back