Exemplo n.º 1
0
 public static AbStateInfo LoadFromDatabase(DataRow row)
 {
     AbStateInfo info = new AbStateInfo
     {
         ID = GetDataTypes.GetUshort(row["ID"]),
         InxName = (string)row["InxName"],
     };
     return info;
 }
Exemplo n.º 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);
            }
        }