Beispiel #1
0
 public static void SendSkillEffect(Character target, Actor source, uint addition, byte effect, uint amount)
 {
     SMSG_SKILLEFFECT spkt = new SMSG_SKILLEFFECT();
     spkt.SourceActor = source.id;
     spkt.Unknown1 = 1;
     spkt.Unknown2 = addition;
     spkt.Amount = amount;
     spkt.Function = effect;
     spkt.SessionId = target.id;
     target.client.Send((byte[])spkt);
 }
Beispiel #2
0
        /// <summary>
        /// Sends a skill effect to the selected players.
        /// </summary>
        /// <param name="source"></param>
        /// <param name="addition"></param>
        /// <param name="effect"></param>
        /// <param name="amount"></param>
        public static void SendSkillEffect(Actor source, uint addition, byte effect, uint amount)
        {
            if (source == null)
                return;

            Regiontree tree = source.currentzone.Regiontree;
            foreach (Character target in tree.SearchActors(source, SearchFlags.Characters))
            {
                SMSG_SKILLEFFECT spkt = new SMSG_SKILLEFFECT();
                spkt.SourceActor = source.id;
                spkt.Unknown1 = 1;
                spkt.Unknown2 = addition;
                spkt.Amount = amount;
                spkt.Function = effect;
                spkt.SessionId = target.id;
                target.client.Send((byte[])spkt);
            }
        }