Beispiel #1
0
        protected void OnAnimation(AnimationEventArgs ae)
        {
            EventHandler<AnimationEventArgs> handler = PlayAnimation;

            if (handler != null)
                handler(this, ae);
        }
 void Mob_PlayAnimation(object sender, AnimationEventArgs ae)
 {
     Mob mob = sender as Mob;
     Animation anim = new Animation() { Action = 10, SpawnID = (ushort)mob.ID, Value = (byte)ae.Anim };
     EQApplicationPacket<Animation> animPack = new EQApplicationPacket<Animation>(AppOpCode.Animation, anim);
     _zoneSvr.QueuePacketToNearbyClients(mob, animPack, 200.0f, false, true);
 }