protected void SetRace(int raceId)
{
if (this.NPC != null)
throw new InvalidOperationException("The NPC has a race already.");
this.NPC = new NPC(raceId);
this.NPC.State = CreatureStates.Npc | CreatureStates.NamedNpc | CreatureStates.GoodNpc;
this.SetAi("npc_normal");
}