/// <summary> /// Adds a additions icon the the player. /// </summary> /// <param name="source"></param> /// <param name="addition"></param> /// <param name="time"></param> internal static void SendExchangeStatus(Actor source, uint addition, uint time) { Regiontree tree = source.currentzone.Regiontree; foreach (Character current in tree.SearchActors(SearchFlags.Characters)) { SMSG_ADDITIONBEGIN spkt = new SMSG_ADDITIONBEGIN(); spkt.Duration = time; spkt.SourceActor = source.id; spkt.StatusID = addition; spkt.SessionId = current.id; current.client.Send((byte[])spkt); } }
public static void SendExchangeStatus(Character target, uint addition, uint time) { SMSG_ADDITIONBEGIN spkt = new SMSG_ADDITIONBEGIN(); spkt.Duration = time; spkt.SourceActor = target.id; spkt.StatusID = addition; spkt.SessionId = target.id; target.client.Send((byte[])spkt); }