public static void SendDeleteStatus(Character target, uint addition)
    {
        SMSG_ADDITIONEND spkt = new SMSG_ADDITIONEND();

        spkt.SourceActor = target.id;
        spkt.StatusID    = addition;
        spkt.SessionId   = target.id;
        target.client.Send((byte[])spkt);
    }
Beispiel #2
0
        /// <summary>
        /// Deletes a given addition icon to a player
        /// </summary>
        /// <param name="source"></param>
        /// <param name="addition"></param>
        internal static void SendDeleteStatus(Actor source, uint addition)
        {
            Regiontree tree = source.currentzone.Regiontree;

            foreach (Character current in tree.SearchActors(SearchFlags.Characters))
            {
                SMSG_ADDITIONEND spkt = new SMSG_ADDITIONEND();
                spkt.SourceActor = source.id;
                spkt.StatusID    = addition;
                spkt.SessionId   = current.id;
                current.client.Send((byte[])spkt);
            }
        }