protected virtual void OnNPCFleeFail(FleeFailEventArgs e) { EventHandler<FleeFailEventArgs> handler = this.NPCFleeFail; if (handler != null) { handler(this, e); } }
private void HandlePlayerFleeFail(object sender, FleeFailEventArgs e) { if (e.X == this.x && e.Y == this.y && e.Z == this.z) { this.writeToClient(e.Name + " panics and tries to flee, but can't escape.\r\n"); } }