Evo Dragons

Dvdci84

Gold Donator
Jan 2, 2020
69
6
8
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.
 

PyrO

Moderator
Jan 27, 2015
1,352
195
63
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);
}
 

Izex

Rookie
Feb 16, 2016
65
6
8
USA
www.SC2Power.com
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.