Exemple #1
0
 public static AbStateInfo LoadFromDatabase(DataRow row)
 {
     AbStateInfo info = new AbStateInfo
     {
         ID = GetDataTypes.GetUshort(row["ID"]),
         InxName = (string)row["InxName"],
     };
     return info;
 }
Exemple #2
0
        public static void RemoveBuff(AbStateInfo AbState, params WorldCharacter[] Receiver)
        {
            using (var packet = new InterPacket(InterHeader.ZONE_CharacterRemoveBuff))
            {
                packet.WriteUShort(AbState.ID);

                packet.WriteInt(Receiver.Length);
                Array.ForEach(Receiver, ch => packet.WriteInt(ch.ID));

                ZoneManager.Instance.Broadcast(packet);
            }
        }