Can anyone help with the code below to add a check on the person having a specific item equipped when they kill the monster, For instance they would only get the reward if they had a hammer equipped when they kill that monster?
Code:
if (this.Name == "Phesant")
{
{
killer.SubClasses.StudyPoints += 100;
ServerBase.Kernel.SendWorldMessage(new Network.GamePackets.Message(" " + killer.Name + "Has Killed " + Owner.Name + " And Take 10000 StudyPoints!", System.Drawing.Color.Yellow, 2011), ServerBase.Kernel.GamePool.Values);
}
}