Beispiel #1
0
        protected void OnSpellCastBegun(BeginCastEventArgs bce)
        {
            EventHandler<BeginCastEventArgs> handler = SpellCastBegun;

            if (handler != null)
                handler(this, bce);
        }
 void Mob_SpellCastBegun(object sender, BeginCastEventArgs bce)
 {
     Mob m = sender as Mob;
     BeginCast bc = new BeginCast() { CasterId = (ushort)m.ID, SpellId = (ushort)bce.SpellId, CastTime = bce.CastTime };
     EQApplicationPacket<BeginCast> bcPacket = new EQApplicationPacket<BeginCast>(AppOpCode.BeginCast, bc);
     _zoneSvr.QueuePacketToNearbyClients(m, bcPacket, 200.0f, false);
 }