protected void SetLocation(int regionId, int x, int y, byte direction = 0) { if (this.NPC == null) throw new InvalidOperationException("NPC's race has to be set first."); this.NPC.SetLocation(regionId, x, y); this.NPC.Direction = direction; }