public override void Encode()
        {
            string StreamTest = @"{""loot"":[[3000002,999999999],[3000001,999999999]],""availableLoot"":[[3000000,0],[3000001,145430],[3000002,142872],[3000003,517]],""units"":[[4000001,58]],""spells"":[],""levels"":[[4000001,4]],""stats"":{""townhallDestroyed"":false,""battleEnded"":true,""allianceUsed"":false,""destructionPercentage"":6,""battleTime"":90,""originalAttackerScore"":6022,""attackerScore"":-10,""originalDefenderScore"":1056,""defenderScore"":18,""allianceName"":""Ultrapowa"",""attackerStars"":0,""homeID"":[0,5],""allianceBadge"":1526735450,""allianceBadge2"":1660949336,""allianceID"":[88,884629],""deployedHousingSpace"":168,""armyDeploymentPercentage"":5}}";

            ClientAvatar pl   = Client.GetLevel().GetPlayerAvatar();
            List <byte>  pack = new List <byte>();

            pack.AddInt32(1); //Stream Ammount
            pack.AddInt32(2); //Stream Type, 2 = attacked, 7 = defended;
            pack.AddInt64(1); //Stream ID
            pack.Add(1);
            pack.AddInt32(pl.GetAvatarHighIdInt());
            pack.AddInt32(pl.GetAvataLowIdInt());
            //pack.AddInt64(1); //Attacker ID
/*FOR FHX*/                                        //pack.AddString("FHx-Server"); //Attacker Name
            pack.AddString("Ultrapowa Dev. Team"); //Attacker Name
            pack.AddInt32(1);
            pack.AddInt32(0);
            pack.AddInt32(999); //Age
            pack.Add(0);        // 2 = new, 0 = old;
            pack.AddString(StreamTest);
            pack.Add(0);
            pack.AddInt32(0);
            pack.AddInt32(0);
            pack.AddInt32(0);
            pack.Add(1);
            pack.AddInt64(1);
            pack.AddInt32(int.MaxValue);
            Encrypt(pack.ToArray());
        }
        public override async void Encode()
        {
            try
            {
                ClientAvatar _ClientAvatar = Client.GetLevel().GetPlayerAvatar();

                List <byte> _data = new List <byte>();
                _data.AddString(null);
                _data.Add(1);

                _data.AddInt32(_ClientAvatar.GetAvatarHighIdInt());
                _data.AddInt32(_ClientAvatar.GetAvataLowIdInt());

                _data.AddString(_Player.GetPlayerAvatar().GetUserToken());
                _data.AddRange(await _Player.GetPlayerAvatar().Encode());

                Encrypt(_data.ToArray());
            }
            catch (Exception)
            {
            }
        }