Пример #1
0
        protected virtual void OnNPCFleeFail(FleeFailEventArgs e)
        {
            EventHandler<FleeFailEventArgs> handler = this.NPCFleeFail;

            if (handler != null)
            {
                handler(this, e);
            }
        }
Пример #2
0
 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");
     }
 }