Beispiel #1
0
        //00 00 02 01 1D CD 65 10 00 00 38 A6

        public override void Execute(Level level)
        {
            ClientAvatar ca = level.GetPlayerAvatar();
            GameObject   go = level.GameObjectManager.GetGameObjectByID(m_vBuildingId);

            if (go != null)
            {
                if (go.ClassId == 0)
                {
                    Building b = (Building)go;
                    UnitProductionComponent upc = b.GetUnitProductionComponent();
                    if (upc != null)
                    {
                        int totalRemainingTime = upc.GetTotalRemainingSeconds();
                        int cost = GamePlayUtil.GetSpeedUpCost(totalRemainingTime);
                        if (upc.IsSpellForge())
                        {
                            int multiplier = ObjectManager.DataTables.GetGlobals().GetGlobalData("SPELL_SPEED_UP_COST_MULTIPLIER").NumberValue;
                            cost = (int)(((long)cost * (long)multiplier * (long)1374389535) >> 32);
                            cost = Math.Max((cost >> 5) + (cost >> 31), 1);
                        }
                        if (ca.HasEnoughDiamonds(cost))
                        {
                            if (upc.HasHousingSpaceForSpeedUp())
                            {
                                ca.UseDiamonds(cost);
                                upc.SpeedUp();
                            }
                        }
                    }
                }
            }
        }
Beispiel #2
0
        public override void Execute(Level level)
        {
            GameObject gameObjectById = level.GameObjectManager.GetGameObjectByID(BuildingId);

            if (gameObjectById == null)
            {
                return;
            }
            if (gameObjectById.ClassId == 0 || gameObjectById.ClassId == 4)
            {
                ConstructionItem constructionItem = (ConstructionItem)gameObjectById;
                if (!constructionItem.IsConstructing())
                {
                    return;
                }
                ClientAvatar avatar = level.GetPlayerAvatar();
                string       name   = level.GameObjectManager.GetGameObjectByID(BuildingId).GetData().GetName();
                Logger.Write("Canceling Building Upgrade: " + name + " (" + BuildingId + ')');
                if (string.Equals(name, "Alliance Castle"))
                {
                    avatar.DeIncrementAllianceCastleLevel();
                    BuildingData buildingData = ((Building)gameObjectById).GetBuildingData();
                    avatar.SetAllianceCastleTotalCapacity(buildingData.GetUnitStorageCapacity(avatar.GetAllianceCastleLevel() - 1));
                }
                else if (string.Equals(name, "Town Hall"))
                {
                    avatar.DeIncrementTownHallLevel();
                }
                constructionItem.CancelConstruction();
            }
            else
            {
                int classId = gameObjectById.ClassId;
            }
        }
Beispiel #3
0
        }                                  //FF FF FF FF

        public override void Execute(Level level)
        {
            GameObject go = level.GameObjectManager.GetGameObjectByID(BuildingId);

            if (Count > 0)
            {
                Building b = (Building)go;
                UnitProductionComponent c   = b.GetUnitProductionComponent();
                CombatItemData          cid = (CombatItemData)ObjectManager.DataTables.GetDataById(UnitType);
                do
                {
                    if (!c.CanAddUnitToQueue(cid))
                    {
                        break;
                    }
                    ResourceData trainingResource = cid.GetTrainingResource();
                    ClientAvatar ca           = level.GetHomeOwnerAvatar();
                    int          trainingCost = cid.GetTrainingCost(ca.GetUnitUpgradeLevel(cid));
                    if (!ca.HasEnoughResources(trainingResource, trainingCost))
                    {
                        break;
                    }
                    ca.SetResourceCount(trainingResource, ca.GetResourceCount(trainingResource) - trainingCost);
                    c.AddUnitToProductionQueue(cid);
                    Count--;
                }while (Count > 0);
            }
        }
Beispiel #4
0
 public void SetSender(ClientAvatar avatar)
 {
     m_vSenderId       = avatar.UserId;
     m_vSenderName     = avatar.AvatarName;
     m_vSenderLevel    = avatar.m_vAvatarLevel;
     m_vSenderLeagueId = avatar.m_vLeagueId;
 }
Beispiel #5
0
        public override void Execute(Level level)
        {
            ClientAvatar ca = level.GetPlayerAvatar();
            GameObject   go = level.GameObjectManager.GetGameObjectByID(BuildingId);

            if (go != null)
            {
                Building          b   = (Building)go;
                HeroBaseComponent hbc = b.GetHeroBaseComponent();
                if (hbc != null)
                {
                    if (hbc.CanStartUpgrading())
                    {
                        HeroData     hd           = ObjectManager.DataTables.GetHeroByName(b.GetBuildingData().HeroType);
                        int          currentLevel = ca.GetUnitUpgradeLevel(hd);
                        ResourceData rd           = hd.GetUpgradeResource(currentLevel);
                        int          cost         = hd.GetUpgradeCost(currentLevel);
                        if (ca.HasEnoughResources(rd, cost))
                        {
                            if (level.HasFreeWorkers())
                            {
                                hbc.StartUpgrading();
                            }
                        }
                    }
                }
            }
        }
        public override async void Encode()
        {
            try
            {
                ClientAvatar Avatar = Player.GetPlayerAvatar();
                List <byte>  data   = new List <byte>();
                ClientHome   home   = new ClientHome(Avatar.GetId());

                home.SetShieldTime(Avatar.GetShieldTime);
                home.SetProtectionTime(Avatar.GetProtectionTime);
                home.SetHomeJSON(Player.SaveToJSON());

                data.AddInt32(0);
                data.AddInt32(-1);
                data.AddInt32((int)Player.GetTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds);
                data.AddRange(home.Encode());
                data.AddRange(await Avatar.Encode());
                if (Avatar.State == ClientAvatar.UserState.Editmode)
                {
                    data.AddInt32(1);
                }
                else
                {
                    data.AddInt32(0);
                }
                data.AddInt32(0);
                data.AddInt64(0);
                data.AddInt64(0);
                data.AddInt64(0);

                Encrypt(data.ToArray());
            } catch (Exception) { }
        }
Beispiel #7
0
 /// <summary>
 /// Remove the specified player from the clan.
 /// </summary>
 /// <param name="_Player">The player.</param>
 public new void Remove(ClientAvatar _Player)
 {
     if (this.ContainsKey(_Player.GetId()))
     {
         this.Remove(_Player.GetId());
     }
 }
        public override void Execute(Level level)
        {
            if (level.Avatar.AccountPrivileges >= GetRequiredAccountPrivileges())
            {
                if (m_vArgs.Length >= 1)
                {
                    string       message = string.Join(" ", m_vArgs.Skip(1));
                    ClientAvatar avatar  = level.Avatar;
                    var          mail    = new AllianceMailStreamEntry();
                    mail.ID = (int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;
                    mail.SetSender(avatar);
                    mail.IsNew             = 2;
                    mail.AllianceId        = 0;
                    mail.AllianceBadgeData = 1526735450;
                    mail.AllianceName      = "Administrator";
                    mail.Message           = message;

                    foreach (var onlinePlayer in ResourcesManager.m_vOnlinePlayers)
                    {
                        var p = new AvatarStreamEntryMessage(onlinePlayer.Client);
                        p.SetAvatarStreamEntry(mail);
                        Processor.Send(p);
                    }
                }
            }
            else
            {
                SendCommandFailedMessage(level.Client);
            }
        }
Beispiel #9
0
        public override async void Process(Level level)
        {
            try
            {
                ClientAvatar player = level.GetPlayerAvatar();
                Alliance     all    = await ObjectManager.GetAlliance(ID);

                InvitationStreamEntry cm = new InvitationStreamEntry();
                cm.SetId(all.GetChatMessages().Count + 1);
                cm.SetSenderId(player.GetId());
                cm.SetHomeId(player.GetId());
                cm.SetSenderLeagueId(player.GetLeagueId());
                cm.SetSenderName(player.GetAvatarName());
                cm.SetSenderRole(await player.GetAllianceRole());
                cm.SetMessage(Message);
                cm.SetState(1);
                all.AddChatMessage(cm);

                foreach (AllianceMemberEntry op in all.GetAllianceMembers())
                {
                    Level playera = await ResourcesManager.GetPlayer(op.GetAvatarId());

                    if (playera.GetClient() != null)
                    {
                        AllianceStreamEntryMessage p = new AllianceStreamEntryMessage(playera.GetClient());
                        p.SetStreamEntry(cm);
                        PacketProcessor.Send(p);
                    }
                }
            } catch (Exception) { }
        }
        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());
        }
Beispiel #11
0
        //00 00 02 25 00 00 00 00 07 1D CD 65 0A 1D CD 65 09 1D CD 65 0B 1D CD 65 08 1D CD 65 0C 1D CD 65 07 1D CD 65 06 00 00 1B 07
        //public uint Unknown1 { get; set; } //00 00 2D 7F some client tick

        public override void Execute(Level level)
        {
            ClientAvatar ca = level.GetPlayerAvatar();

            foreach (var buildingId in m_vBuildingIdList)
            {
                Building b = (Building)level.GameObjectManager.GetGameObjectByID(buildingId);
                if (b.CanUpgrade())
                {
                    BuildingData bd   = b.GetBuildingData();
                    int          cost = bd.GetBuildCost(b.GetUpgradeLevel() + 1);
                    ResourceData rd;
                    if (m_vIsAltResource == 0)
                    {
                        rd = bd.GetBuildResource(b.GetUpgradeLevel() + 1);
                    }
                    else
                    {
                        rd = bd.GetAltBuildResource(b.GetUpgradeLevel() + 1);
                    }
                    if (ca.HasEnoughResources(rd, cost))
                    {
                        if (level.HasFreeWorkers())
                        {
                            ca.SetResourceCount(rd, ca.GetResourceCount(rd) - cost);
                            b.StartUpgrading();
                        }
                    }
                }
            }
        }
 public void SetAvatar(ClientAvatar avatar)
 {
     m_vSenderId       = avatar.GetId();
     m_vSenderName     = avatar.GetAvatarName();
     m_vSenderLevel    = avatar.GetAvatarLevel();
     m_vSenderLeagueId = avatar.GetLeagueId();
 }
Beispiel #13
0
        internal 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"":""Ultrapower"",""attackerStars"":0,""homeID"":[0,5],""allianceBadge"":1526735450,""allianceBadge2"":1660949336,""allianceID"":[88,884629],""deployedHousingSpace"":168,""armyDeploymentPercentage"":5}}";

            ClientAvatar pl = this.Device.Player.Avatar;

            this.Data.AddInt(1);  //Stream Ammount
            this.Data.AddInt(2);  //Stream Type, 2 = attacked, 7 = defended;
            this.Data.AddLong(1); //Stream ID
            this.Data.Add(1);
            this.Data.AddInt(pl.HighID);
            this.Data.AddInt(pl.LowID);
            this.Data.AddString("Ultrapower Server AI"); //Attacker Name
            this.Data.AddInt(1);
            this.Data.AddInt(0);
            this.Data.AddInt(446); //Age
            this.Data.Add(2);      // 2 = new, 0 = old;
            this.Data.AddString(StreamTest);
            this.Data.AddInt(0);
            this.Data.Add(1);
            this.Data.AddInt(8);
            this.Data.AddInt(709);
            this.Data.AddInt(0);
            this.Data.Add(1);
            this.Data.AddLong(1);
            this.Data.AddInt(int.MaxValue);
        }
Beispiel #14
0
        public override void Process(Level level)
        {
            ClientAvatar player = level.GetPlayerAvatar();
            Alliance     all    = ObjectManager.GetAlliance(ID);

            InvitationStreamEntry cm = new InvitationStreamEntry();

            cm.SetId(all.GetChatMessages().Count + 1);
            cm.SetSenderId(player.GetId());
            cm.SetHomeId(player.GetId());
            cm.SetSenderLeagueId(player.GetLeagueId());
            cm.SetSenderName(player.GetAvatarName());
            cm.SetSenderRole(player.GetAllianceRole());
            cm.SetMessage(Message);
            cm.SetState(1);
            all.AddChatMessage(cm);

            // New function for send a message
            foreach (AllianceMemberEntry op in all.GetAllianceMembers())
            {
                Level playera = ResourcesManager.GetPlayer(op.GetAvatarId());
                if (playera.GetClient() != null)
                {
                    var p = new AllianceStreamEntryMessage(playera.GetClient());
                    p.SetStreamEntry(cm);
                    p.Send();
                }
            }
        }
        public static async Task <Level> GetRandomOnlinePlayerWithoutShield()
        {
            try
            {
loop:
                Level l = GetRandomOnlinePlayer();
                ClientAvatar ca = l.GetPlayerAvatar();

                if (ResourcesManager.GetOnlinePlayers().Count >= 500)
                {
                    if (l != null && l.GetPlayerAvatar().GetAvatarLevel() > 90)
                    {
                        return(l);
                    }
                    else
                    {
                        goto loop;
                    }
                }
                else
                {
                    return(l);
                }
            } catch (Exception) { return(null); }
        }
        public override void Execute(Level level)
        {
            if (level.Avatar.AccountPrivileges >= GetRequiredAccountPrivileges())
            {
                if (m_vArgs.Length >= 1)
                {
                    ClientAvatar avatar = level.Avatar;
                    var          mail   = new AllianceMailStreamEntry();
                    mail.ID = (int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;
                    mail.SetSender(avatar);
                    mail.IsNew             = 2;
                    mail.AllianceId        = 0;
                    mail.AllianceBadgeData = 1526735450;
                    mail.AllianceName      = "UCS Server Information";
                    mail.Message           = @"Online Players: " + ResourcesManager.m_vOnlinePlayers.Count +
                                             "\nIn Memory Players: " + ResourcesManager.m_vInMemoryLevels.Count +
                                             "\nConnected Players: " + ResourcesManager.GetConnectedClients().Count +
                                             "\nServer Ram: " + Performances.GetUsedMemory() + "% / " + Performances.GetTotalMemory() + "MB";

                    var p = new AvatarStreamEntryMessage(level.Client);
                    p.SetAvatarStreamEntry(mail);
                    Processor.Send(p);
                }
            }
            else
            {
                SendCommandFailedMessage(level.Client);
            }
        }
Beispiel #17
0
        internal override void Encode()
        {
            ClientAvatar avatar = this.Device.Player.Avatar;

            this.Data.AddLong(avatar.UserId);
            this.Data.AddLong(avatar.UserId);

            this.Data.AddString(avatar.UserToken);

            this.Data.AddString(avatar.FacebookId);
            this.Data.AddString(null);


            this.Data.AddInt(ServerMajorVersion);
            this.Data.AddInt(ServerBuild);
            this.Data.AddInt(ContentVersion);

            this.Data.AddString("prod");

            this.Data.AddInt(3);   //Session Count
            this.Data.AddInt(490); //Playtime Second
            this.Data.AddInt(0);

            this.Data.AddString(FacebookApi.ApplicationID);

            this.Data.AddString("1482970881296"); // 14 75 26 87 86 11 24 33
            this.Data.AddString("1482952262000"); // 14 78 03 95 03 10 0

            this.Data.AddInt(0);
            this.Data.AddString(avatar.GoogleId);
            this.Data.AddString(avatar.Region.ToUpper());
            this.Data.AddString(null);
            this.Data.AddInt(1);
        }
Beispiel #18
0
        public override void Encode()
        {
            var data    = new List <byte>();
            var packet1 = new List <byte>();
            var i       = 1;

            foreach (var player in ResourcesManager.GetOnlinePlayers().OrderByDescending(t => t.GetPlayerAvatar().GetScore()))
            {
                if (i < 51)
                {
                    ClientAvatar avatar = player.GetPlayerAvatar();
                    if (player.GetPlayerAvatar().GetAvatarName() != null)
                    {
                        try
                        {
                            var pl = player.GetPlayerAvatar();
                            packet1.AddInt64(pl.GetId());
                            packet1.AddString(pl.GetAvatarName());
                            packet1.AddInt32(i);
                            packet1.AddInt32(pl.GetScore());
                            packet1.AddInt32(i);
                            packet1.AddInt32(pl.GetAvatarLevel());
                            packet1.AddInt32(200);
                            packet1.AddInt32(i);
                            packet1.AddInt32(100);
                            packet1.AddInt32(1);
                            packet1.AddInt64(pl.GetAllianceId());
                            packet1.AddInt32(1);
                            packet1.AddInt32(1);
                            if (pl.GetAllianceId() > 0)
                            {
                                packet1.Add(1); // 1 = Have an alliance | 0 = No alliance
                                packet1.AddInt64(pl.GetAllianceId());
                                packet1.AddString(ObjectManager.GetAlliance(pl.GetAllianceId()).GetAllianceName());
                                packet1.AddInt32(ObjectManager.GetAlliance(pl.GetAllianceId()).GetAllianceBadgeData());
                                packet1.AddInt64(i);
                            }
                            else
                            {
                                packet1.Add(0);
                            }
                            i++;
                        }
                        catch (Exception ex)
                        {
                        }
                    }
                }
                else
                {
                    break;
                }
            }
            data.AddInt32(9000);     //Season End
            data.AddInt32(i - 1);
            data.AddRange(packet1);

            Encrypt(data.ToArray());
        }
Beispiel #19
0
 public async void SetSender(ClientAvatar avatar)
 {
     m_vSenderId       = avatar.GetId();
     m_vHomeId         = avatar.GetId();
     m_vSenderName     = avatar.GetAvatarName();
     m_vSenderLeagueId = avatar.GetLeagueId();
     m_vSenderLevel    = avatar.GetAvatarLevel();
     m_vSenderRole     = await avatar.GetAllianceRole();
 }
        public override async void Encode()
        {
            try
            {            //var pl = Client.GetLevel().GetPlayerAvatar();
                Alliance an = await ObjectManager.GetAlliance(Client.GetLevel().GetPlayerAvatar().GetAllianceId());

                List <byte> data = new List <byte>();
                data.AddInt32(4);                         // 4 = Preperation Day; 5 = Battle Day; 6 = End of War
                data.AddInt32(3600);                      // Time left
                data.AddInt64(an.GetAllianceId());        // Alliance ID
                data.AddString(an.GetAllianceName());     // Alliance Name
                data.AddInt32(an.GetAllianceBadgeData()); // Alliance Badge Data
                data.AddInt32(an.GetAllianceLevel());     // Alliance Level
                data.AddInt32(10);                        // War Members

                int count = 0;
                foreach (AllianceMemberEntry a in an.GetAllianceMembers())
                {
                    Level l = await ResourcesManager.GetPlayer(a.GetAvatarId());

                    ClientAvatar pl = l.GetPlayerAvatar();

                    data.AddInt64(pl.GetAllianceId());    // Alliance ID
                    data.AddInt64(pl.GetId());            // Player ID
                    data.AddInt64(pl.GetCurrentHomeId()); // Current Home ID
                    data.AddString(pl.GetAvatarName());   // Player 1 Name // or pl.GetAvatarName()
                    data.AddInt32(0);                     //StarGivenUp
                    data.AddInt32(0);                     //Damage
                    data.AddInt32(0);                     //Unknown 1
                    data.AddInt32(0);                     //AttackUsed
                    data.AddInt32(0);                     //TotalDefence
                    data.AddInt32(3);                     //Gold Gain
                    data.AddInt32(3);                     //Elixir Gain
                    data.AddInt32(3);                     //DElixir Gain
                    data.AddInt32(101000);                //Gold Available
                    data.AddInt32(101000);                //Elixir Available
                    data.AddInt32(550);                   //DElixir Available
                    data.AddInt32(0);                     //OffencesWeight
                    data.AddInt32(0);                     //DefencesWeight
                    data.AddInt32(0);                     //Unknown2
                    data.AddInt32(pl.GetTownHallLevel()); //TownHall Level
                    data.AddInt32(count + 1);             // Map Position

                    count++;
                    if (count == 10)
                    {
                        break;
                    }
                }

                //data.AddRange("00-00-04-22-00-00-06-A7-00-00-00-03-00-00-00-0A-00-00-00-00-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-C7-D0-00-00-00-00-00-00-00-00-05-00-00-00-23-00-00-00-07-64-72-61-67-67-64-63-00-00-00-14-00-00-00-01-00-00-00-0E-00-7A-B1-BE-00-00-00-01-00-3D-09-08-00-00-00-03-00-00-00-2B-00-1C-06-38-00-00-00-34-00-5D-D2-41-00-00-00-34-00-5D-D2-41-00-00-00-05-5A-6F-75-6D-69-00-00-00-02-00-00-00-40-00-00-00-97-00-00-00-01-00-00-00-01-00-00-FD-E8-00-00-FD-E8-00-00-01-22-00-00-FA-00-00-00-FA-00-00-00-01-18-00-00-02-66-00-00-02-05-00-00-00-03-00-00-00-08-00-00-00-01-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-2B-01-00-00-00-00-07-51-AA-F8-00-00-00-00-00-00-00-03-00-00-00-19-00-00-00-0D-6E-20-69-6D-70-6F-72-74-65-20-67-64-63-00-00-00-19-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-02-00-3D-09-08-00-00-00-04-00-3D-09-05-00-00-00-06-00-00-00-2B-00-1C-06-38-00-00-00-40-00-5F-97-0D-00-00-00-40-00-5F-97-0D-00-00-00-06-64-72-69-76-65-72-00-00-00-02-00-00-00-34-00-00-00-65-00-00-00-02-00-00-00-03-00-01-A1-30-00-01-A1-30-00-00-01-BC-00-00-FA-00-00-00-FA-00-00-00-01-18-00-00-02-6A-00-00-01-FA-00-00-00-03-00-00-00-08-00-00-00-02-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-28-01-00-00-00-00-07-53-BC-55-00-00-00-00-00-00-00-04-00-00-00-1E-00-00-00-00-00-00-00-1E-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-01-00-3D-09-11-00-00-00-02-00-00-00-2B-00-1C-06-38-00-00-00-0F-00-79-FE-3C-00-00-00-0F-00-79-FE-3C-00-00-00-08-6D-61-68-64-69-20-4D-52-00-00-00-02-00-00-00-35-00-00-00-66-00-00-00-00-00-00-00-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-EA-60-00-00-EA-60-00-00-00-FA-00-00-01-DE-00-00-01-B6-00-00-00-03-00-00-00-08-00-00-00-03-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-19-01-00-00-00-00-07-52-17-46-00-00-00-00-00-00-00-03-00-00-00-19-00-00-00-00-00-00-00-19-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-02-00-3D-09-08-00-00-00-04-00-3D-09-05-00-00-00-06-00-00-00-2B-00-1C-06-38-00-00-00-0E-00-7A-B1-BE-00-00-00-0E-00-7A-B1-BE-00-00-00-08-64-69-6D-C3-A9-32-37-30-00-00-00-03-00-00-00-64-00-00-00-7E-00-00-00-01-00-00-00-01-00-00-AB-E0-00-00-AB-E0-00-00-00-8C-00-00-CB-20-00-00-CB-20-00-00-00-B4-00-00-01-34-00-00-01-34-00-00-00-03-00-00-00-07-00-00-00-04-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-23-01-00-00-00-00-07-54-85-62-00-00-00-00-00-00-00-03-00-00-00-19-00-00-00-08-64-72-61-67-20-62-61-6C-00-00-00-19-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-02-00-3D-09-08-00-00-00-04-00-3D-09-05-00-00-00-06-00-00-00-2B-00-1C-06-38-00-00-00-0C-00-30-4C-9C-00-00-00-0C-00-30-4C-9B-00-00-00-04-4B-6F-67-61-00-00-00-03-00-00-00-64-00-00-00-8F-00-00-00-00-00-00-00-01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-94-70-00-00-94-70-00-00-00-64-00-00-00-B0-00-00-00-CE-00-00-00-03-00-00-00-06-00-00-00-05-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-1E-01-00-00-00-00-07-54-B7-B2-00-00-00-00-00-00-00-02-00-00-00-14-00-00-00-26-73-6F-72-63-69-65-72-20-65-74-20-61-72-20-68-65-72-20-33-20-6D-69-6E-20-6D-65-72-63-69-20-6C-65-73-20-67-61-72-73-00-00-00-14-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-01-00-3D-09-08-00-00-00-04-00-00-00-2B-00-1C-06-38-00-00-00-13-00-F5-83-60-00-00-00-13-00-F5-83-60-00-00-00-06-79-61-6E-6E-6F-75-00-00-00-03-00-00-00-64-00-00-00-88-00-00-00-02-00-00-00-03-00-01-30-B0-00-01-30-B0-00-00-00-C8-00-00-88-B8-00-00-88-B8-00-00-00-46-00-00-00-8B-00-00-00-B5-00-00-00-03-00-00-00-06-00-00-00-06-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-14-01-00-00-00-00-07-54-D6-23-00-00-00-00-00-00-00-02-00-00-00-14-00-00-00-07-62-61-6C-6C-6F-6E-20-00-00-00-14-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-01-00-3D-09-08-00-00-00-04-00-00-00-2B-00-1C-06-38-00-00-00-35-00-FE-56-BE-00-00-00-35-00-FE-56-BE-00-00-00-07-62-61-73-74-69-65-6E-00-00-00-02-00-00-00-59-00-00-00-B3-00-00-00-02-00-00-00-04-00-00-54-60-00-00-54-60-00-00-00-00-00-00-84-D0-00-00-84-D0-00-00-00-3C-00-00-00-62-00-00-00-AB-00-00-00-03-00-00-00-06-00-00-00-07-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-1D-01-00-00-00-00-07-54-D4-C5-00-00-00-00-00-00-00-02-00-00-00-14-00-00-00-00-00-00-00-14-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-01-00-3D-09-08-00-00-00-04-00-00-00-2B-00-1C-06-38-00-00-00-0E-01-04-64-66-00-00-00-0E-01-04-64-66-00-00-00-06-4E-61-68-69-64-61-00-00-00-03-00-00-00-64-00-00-00-64-00-00-00-00-00-00-00-01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-42-68-00-00-42-68-00-00-00-00-00-00-00-1E-00-00-00-3A-00-00-00-03-00-00-00-04-00-00-00-08-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-1C-01-00-00-00-00-07-4F-C9-DE-00-00-00-00-00-00-00-01-00-00-00-0F-00-00-00-00-00-00-00-0F-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-03-00-3D-09-05-00-00-00-06-00-3D-09-05-00-00-00-06-00-3D-09-05-00-00-00-06-00-00-00-2B-00-1C-06-38-00-00-00-55-00-DE-48-32-00-00-00-55-00-DE-48-32-00-00-00-09-6B-61-6D-65-6C-64-69-6E-65-00-00-00-03-00-00-00-64-00-00-00-41-00-00-00-00-00-00-00-02-00-00-00-00-00-00-00-00-00-00-00-00-00-00-3E-80-00-00-3E-80-00-00-00-00-00-00-00-1D-00-00-00-33-00-00-00-03-00-00-00-04-00-00-00-09-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-1B-01-00-00-00-00-07-52-94-B1-00-00-00-00-00-00-00-01-00-00-00-0F-00-00-00-00-00-00-00-0F-00-00-00-01-00-00-00-00-00-7E-1C-30-00-00-00-03-00-3D-09-05-00-00-00-06-00-3D-09-05-00-00-00-06-00-3D-09-05-00-00-00-06-01-00-00-00-32-00-00-00-05-00-00-00-05-00-00-00-05-00-00-00-05-00-00-00-05-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-0A-00-00-00-19-00-00-00-32-00-00-00-28-00-00-00-3C-01-00-00-00-19-00-10-65-87-00-00-00-12-C5-9E-45-4B-C4-B0-4C-53-C4-B0-4E-C4-B0-5A-20-59-41-41-62-00-19-52-00-00-00-06-00-00-00-0A-00-00-00-19-00-10-65-87-00-00-00-25-00-2F-B5-0B-00-00-00-25-00-2F-B5-0B-00-00-00-0B-4D-5F-61-5F-4E-5F-59-5F-61-5F-4B-00-00-00-02-00-00-00-32-00-00-00-5E-00-00-00-02-00-00-00-01-00-01-90-00-00-01-90-00-00-00-01-C0-00-01-38-80-00-01-38-80-00-00-01-A4-00-00-03-42-00-00-03-B1-00-00-00-03-00-00-00-09-00-00-00-00-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-2C-01-00-00-00-00-07-4F-E9-69-00-00-00-00-00-00-00-04-00-00-00-1E-00-00-00-00-00-00-00-1E-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-28-00-1E-A1-C0-00-00-00-28-00-1E-A1-C0-00-00-00-0A-C3-96-7A-63-61-6E-37-30-39-31-00-00-00-01-00-00-00-3E-00-00-00-7D-00-00-00-02-00-00-00-01-00-01-83-80-00-01-83-80-00-00-01-A8-00-01-34-98-00-01-34-98-00-00-01-9A-00-00-02-C1-00-00-03-89-00-00-00-03-00-00-00-09-00-00-00-01-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-2D-01-00-00-00-00-07-50-1E-D4-00-00-00-00-00-00-00-04-00-00-00-1E-00-00-00-00-00-00-00-1A-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-3D-00-00-9A-9A-00-00-00-3D-00-00-9A-9A-00-00-00-0C-54-45-52-4D-C4-B0-4E-41-54-C3-96-52-00-00-00-01-00-00-00-39-00-00-00-77-00-00-00-01-00-00-00-01-00-00-00-00-00-00-00-00-00-00-00-00-00-01-01-D0-00-01-01-D0-00-00-01-2C-00-00-02-80-00-00-02-20-00-00-00-03-00-00-00-08-00-00-00-02-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-36-01-00-00-00-00-07-50-10-E8-00-00-00-00-00-00-00-04-00-00-00-1E-00-00-00-00-00-00-00-1A-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-01-00-39-28-18-00-00-00-01-00-39-28-18-00-00-00-08-4D-55-48-49-54-54-49-4E-00-00-00-02-00-00-00-41-00-00-00-97-00-00-00-02-00-00-00-01-00-01-8C-E0-00-01-8C-E0-00-00-01-8A-00-00-FD-E8-00-00-FD-E8-00-00-01-22-00-00-02-66-00-00-02-16-00-00-00-03-00-00-00-08-00-00-00-03-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-22-01-00-00-00-00-07-52-E5-DF-00-00-00-00-00-00-00-04-00-00-00-1E-00-00-00-00-00-00-00-1C-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-2F-00-24-94-DF-00-00-00-2F-00-24-94-DF-00-00-00-06-6B-61-79-61-70-61-00-00-00-03-00-00-00-64-00-00-00-84-00-00-00-02-00-00-00-01-00-00-E4-20-00-00-E4-20-00-00-00-88-00-00-C7-38-00-00-C7-38-00-00-00-B4-00-00-01-2F-00-00-01-33-00-00-00-03-00-00-00-07-00-00-00-04-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-34-01-00-00-00-00-07-54-81-29-00-00-00-00-00-00-00-03-00-00-00-19-00-00-00-00-00-00-00-16-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-16-00-8D-78-64-00-00-00-16-00-8D-78-64-00-00-00-09-44-61-6E-71-65-52-6F-75-53-00-00-00-03-00-00-00-64-00-00-00-76-00-00-00-02-00-00-00-01-00-00-D7-A0-00-00-D7-A0-00-00-00-68-00-00-AB-E0-00-00-AB-E0-00-00-00-8C-00-00-00-E2-00-00-00-F9-00-00-00-03-00-00-00-07-00-00-00-05-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-25-01-00-00-00-00-07-54-1E-56-00-00-00-00-00-00-00-02-00-00-00-14-00-00-00-00-00-00-00-14-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-4F-00-A8-25-CE-00-00-00-4F-00-A8-25-CE-00-00-00-06-45-4E-49-53-36-31-00-00-00-02-00-00-00-35-00-00-00-87-00-00-00-02-00-00-00-01-00-00-79-E0-00-00-79-E0-00-00-00-30-00-00-A7-F8-00-00-A7-F8-00-00-00-8C-00-00-00-C8-00-00-00-F1-00-00-00-03-00-00-00-07-00-00-00-06-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-1A-01-00-00-00-00-07-50-2E-DD-00-00-00-00-00-00-00-03-00-00-00-19-00-00-00-00-00-00-00-19-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-11-00-A0-BC-DF-00-00-00-11-00-A0-BC-DF-00-00-00-05-56-61-68-69-74-00-00-00-03-00-00-00-64-00-00-00-AF-00-00-00-02-00-00-00-02-00-00-A6-04-00-00-A6-04-00-00-00-3C-00-00-88-B8-00-00-88-B8-00-00-00-3C-00-00-00-93-00-00-00-B1-00-00-00-03-00-00-00-06-00-00-00-07-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-21-01-00-00-00-00-07-53-C7-48-00-00-00-00-00-00-00-02-00-00-00-14-00-00-00-00-00-00-00-14-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-0F-00-F4-54-9A-00-00-00-0F-00-F4-54-9A-00-00-00-04-5A-65-75-73-00-00-00-01-00-00-00-56-00-00-00-B3-00-00-00-02-00-00-00-01-00-00-00-00-00-00-00-00-00-00-00-00-00-00-69-78-00-00-69-78-00-00-00-00-00-00-00-4D-00-00-00-71-00-00-00-03-00-00-00-05-00-00-00-08-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-2A-01-00-00-00-00-07-51-17-5B-00-00-00-00-00-00-00-02-00-00-00-14-00-00-00-00-00-00-00-14-00-00-00-00-00-00-00-19-00-10-65-87-00-00-00-03-00-E4-7C-1C-00-00-00-03-00-E4-7C-1C-00-00-00-0A-6B-65-72-69-6D-20-62-61-62-61-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-01-00-00-00-00-00-00-3E-80-00-00-3E-80-00-00-00-00-00-00-2E-E0-00-00-2E-E0-00-00-00-00-00-00-00-13-00-00-00-23-00-00-00-03-00-00-00-03-00-00-00-09-02-00-00-00-57-00-2D-86-65-01-00-00-00-00-21-8E-B2-33-00-00-00-00-00-00-00-00-01-00-00-00-0F-00-00-00-00-00-00-00-0F-00-00-00-00-01-00-00-00-32-00-00-00-05-00-00-00-05-00-00-00-05-00-00-00-05-00-00-00-05-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-04-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-03-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-02-00-00-00-0A-00-00-00-19-00-00-00-32-00-00-00-28-00-00-00-3C-01-00-00-00-57-00-2D-86-65-00-00-00-1C-00-00-00-01-00-00-00-00-07-54-D6-23-00-00-1A-01-00-00-00-19-00-10-65-87-00-00-00-2F-00-24-94-DF-00-00-00-2B-00-1C-06-38-00-00-00-13-00-F5-83-60-00-00-00-06-6B-61-79-61-70-61-00-00-00-06-79-61-6E-6E-6F-75-00-00-00-03-00-00-00-01-00-00-00-64-00-00-00-88-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-2F-00-00-00-00-80-CD-90-A3-00-04-F4-57-00-00-00-01-00-00-00-00-07-54-D4-C5-00-00-1A-6C-00-00-00-19-00-10-65-87-00-00-00-16-00-8D-78-64-00-00-00-2B-00-1C-06-38-00-00-00-35-00-FE-56-BE-00-00-00-09-44-61-6E-71-65-52-6F-75-53-00-00-00-07-62-61-73-74-69-65-6E-00-00-00-02-00-00-00-00-00-00-00-59-00-00-00-B3-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-16-00-00-00-00-A2-4E-64-65-00-02-F2-E2-00-00-00-01-00-00-00-00-07-54-B7-B2-00-00-23-04-00-00-00-19-00-10-65-87-00-00-00-2F-00-24-94-DF-00-00-00-2B-00-1C-06-38-00-00-00-0C-00-30-4C-9C-00-00-00-06-6B-61-79-61-70-61-00-00-00-04-4B-6F-67-61-00-00-00-03-00-00-00-03-00-00-00-64-00-00-00-8F-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-2F-00-00-00-00-80-CC-94-F8-00-04-F4-AC-00-00-00-01-00-00-00-00-07-54-85-62-00-00-30-BE-00-00-00-19-00-10-65-87-00-00-00-01-00-39-28-18-00-00-00-2B-00-1C-06-38-00-00-00-0E-00-7A-B1-BE-00-00-00-08-4D-55-48-49-54-54-49-4E-00-00-00-08-64-69-6D-C3-A9-32-37-30-00-00-00-03-00-00-00-03-00-00-00-64-00-00-00-7E-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-01-00-00-00-00-D8-A0-31-7B-00-04-E7-05-00-00-00-01-00-00-00-00-07-54-81-29-00-00-31-D3-00-00-00-2B-00-1C-06-38-00-00-00-40-00-5F-97-0D-00-00-00-19-00-10-65-87-00-00-00-2F-00-24-94-DF-00-00-00-06-64-72-69-76-65-72-00-00-00-06-6B-61-79-61-70-61-00-00-00-03-00-00-00-03-00-00-00-64-00-00-00-84-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-40-00-00-00-00-61-81-29-8F-00-05-97-AE-00-00-00-01-00-00-00-00-07-54-64-74-00-00-38-F2-00-00-00-19-00-10-65-87-00-00-00-4F-00-A8-25-CE-00-00-00-2B-00-1C-06-38-00-00-00-35-00-FE-56-BE-00-00-00-06-45-4E-49-53-36-31-00-00-00-07-62-61-73-74-69-65-6E-00-00-00-01-00-00-00-00-00-00-00-46-00-00-00-B3-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-4F-00-00-00-00-2F-81-00-E5-00-02-A5-49-00-00-00-01-00-00-00-00-07-54-1E-56-00-00-48-D2-00-00-00-2B-00-1C-06-38-00-00-00-0E-00-7A-B1-BE-00-00-00-19-00-10-65-87-00-00-00-16-00-8D-78-64-00-00-00-08-64-69-6D-C3-A9-32-37-30-00-00-00-09-44-61-6E-71-65-52-6F-75-53-00-00-00-03-00-00-00-03-00-00-00-64-00-00-00-76-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-0E-00-00-00-00-B0-1C-43-61-00-06-37-40-00-00-00-01-00-00-00-00-07-53-C7-AD-00-00-59-6C-00-00-00-19-00-10-65-87-00-00-00-16-00-8D-78-64-00-00-00-2B-00-1C-06-38-00-00-00-13-00-F5-83-60-00-00-00-09-44-61-6E-71-65-52-6F-75-53-00-00-00-06-79-61-6E-6E-6F-75-00-00-00-02-00-00-00-02-00-00-00-55-00-00-00-6B-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-16-00-00-00-00-A2-45-FE-F2-00-02-F2-E2-00-00-00-01-00-00-00-00-07-53-C7-48-00-00-59-7D-00-00-00-2B-00-1C-06-38-00-00-00-13-00-F5-83-60-00-00-00-19-00-10-65-87-00-00-00-11-00-A0-BC-DF-00-00-00-06-79-61-6E-6E-6F-75-00-00-00-05-56-61-68-69-74-00-00-00-03-00-00-00-03-00-00-00-64-00-00-00-AF-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-13-00-00-00-00-A4-34-4F-4C-00-03-A0-84-00-00-00-01-00-00-00-00-07-53-BC-55-00-00-5B-72-00-00-00-19-00-10-65-87-00-00-00-28-00-1E-A1-C0-00-00-00-2B-00-1C-06-38-00-00-00-40-00-5F-97-0D-00-00-00-0A-C3-96-7A-63-61-6E-37-30-39-31-00-00-00-06-64-72-69-76-65-72-00-00-00-02-00-00-00-01-00-00-00-34-00-00-00-65-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-28-00-00-00-00-96-A6-3F-E0-00-08-1F-1A-00-00-00-01-00-00-00-00-07-53-56-F7-00-00-6C-94-00-00-00-19-00-10-65-87-00-00-00-25-00-2F-B5-0B-00-00-00-2B-00-1C-06-38-00-00-00-40-00-5F-97-0D-00-00-00-0B-4D-5F-61-5F-4E-5F-59-5F-61-5F-4B-00-00-00-06-64-72-69-76-65-72-00-00-00-01-00-00-00-01-00-00-00-48-00-00-00-B3-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-25-00-00-00-00-96-B1-D6-69-00-06-0F-A4-00-00-00-01-00-00-00-00-07-53-29-23-00-00-73-FF-00-00-00-19-00-10-65-87-00-00-00-0F-00-F4-54-9A-00-00-00-2B-00-1C-06-38-00-00-00-35-00-FE-56-BE-00-00-00-04-5A-65-75-73-00-00-00-07-62-61-73-74-69-65-6E-00-00-00-00-00-00-00-00-00-00-00-23-00-00-00-AC-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-0F-00-00-00-00-B0-AD-E6-28-00-01-18-3C-00-00-00-01-00-00-00-00-07-53-22-D3-00-00-74-FF-00-00-00-19-00-10-65-87-00-00-00-0F-00-F4-54-9A-00-00-00-2B-00-1C-06-38-00-00-00-13-00-F5-83-60-00-00-00-04-5A-65-75-73-00-00-00-06-79-61-6E-6E-6F-75-00-00-00-00-00-00-00-00-00-00-00-25-00-00-00-99-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-0F-00-00-00-00-B0-AD-B7-C3-00-01-18-3C-00-00-00-01-00-00-00-00-07-52-E5-DF-00-00-7E-E7-00-00-00-2B-00-1C-06-38-00-00-00-34-00-5D-D2-41-00-00-00-19-00-10-65-87-00-00-00-01-00-39-28-18-00-00-00-05-5A-6F-75-6D-69-00-00-00-08-4D-55-48-49-54-54-49-4E-00-00-00-02-00-00-00-02-00-00-00-41-00-00-00-97-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-34-00-00-00-00-76-87-10-87-00-05-92-7C-00-00-00-01-00-00-00-00-07-52-94-B1-00-00-8D-42-00-00-00-19-00-10-65-87-00-00-00-4F-00-A8-25-CE-00-00-00-2B-00-1C-06-38-00-00-00-55-00-DE-48-32-00-00-00-06-45-4E-49-53-36-31-00-00-00-09-6B-61-6D-65-6C-64-69-6E-65-00-00-00-03-00-00-00-01-00-00-00-64-00-00-00-41-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-4F-00-00-00-00-2F-74-5A-11-00-00-F8-D4-00-00-00-01-00-00-00-00-07-52-78-80-00-00-92-AB-00-00-00-19-00-10-65-87-00-00-00-3D-00-00-9A-9A-00-00-00-2B-00-1C-06-38-00-00-00-40-00-5F-97-0D-00-00-00-0C-54-45-52-4D-C4-B0-4E-41-54-C3-96-52-00-00-00-06-64-72-69-76-65-72-00-00-00-00-00-00-00-00-00-00-00-23-00-00-00-53-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-3D-00-00-00-00-6B-33-88-9D-00-04-CD-AB-00-00-00-01-00-00-00-00-07-52-31-8B-00-00-A1-4D-00-00-00-2B-00-1C-06-38-00-00-00-35-00-FE-56-BE-00-00-00-19-00-10-65-87-00-00-00-11-00-A0-BC-DF-00-00-00-07-62-61-73-74-69-65-6E-00-00-00-05-56-61-68-69-74-00-00-00-00-00-00-00-00-00-00-00-21-00-00-00-41-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-35-00-00-00-00-76-83-0E-4E-00-01-7A-20-00-00-00-01-00-00-00-00-07-52-17-46-00-00-A7-38-00-00-00-19-00-10-65-87-00-00-00-28-00-1E-A1-C0-00-00-00-2B-00-1C-06-38-00-00-00-0F-00-79-FE-3C-00-00-00-0A-C3-96-7A-63-61-6E-37-30-39-31-00-00-00-08-6D-61-68-64-69-20-4D-52-00-00-00-02-00-00-00-01-00-00-00-35-00-00-00-66-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-28-00-00-00-00-96-99-53-BD-00-09-21-EE-00-00-00-01-00-00-00-00-07-51-AA-F8-00-00-C3-2B-00-00-00-19-00-10-65-87-00-00-00-25-00-2F-B5-0B-00-00-00-2B-00-1C-06-38-00-00-00-34-00-5D-D2-41-00-00-00-0B-4D-5F-61-5F-4E-5F-59-5F-61-5F-4B-00-00-00-05-5A-6F-75-6D-69-00-00-00-02-00-00-00-02-00-00-00-40-00-00-00-97-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-25-00-00-00-00-96-A3-E9-6C-00-07-EA-18-00-00-00-01-00-00-00-00-07-51-17-5B-00-00-EE-23-00-00-00-2B-00-1C-06-38-00-00-00-35-00-FE-56-BE-00-00-00-19-00-10-65-87-00-00-00-0F-00-F4-54-9A-00-00-00-07-62-61-73-74-69-65-6E-00-00-00-04-5A-65-75-73-00-00-00-01-00-00-00-01-00-00-00-56-00-00-00-B3-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-35-00-00-00-00-76-78-EE-65-00-01-7F-FC-00-00-00-01-00-00-00-00-07-50-2E-DD-00-01-2F-F7-00-00-00-2B-00-1C-06-38-00-00-00-13-00-F5-83-60-00-00-00-19-00-10-65-87-00-00-00-4F-00-A8-25-CE-00-00-00-06-79-61-6E-6E-6F-75-00-00-00-06-45-4E-49-53-36-31-00-00-00-02-00-00-00-02-00-00-00-35-00-00-00-87-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-13-00-00-00-00-A4-15-1E-DF-00-03-9E-F4-00-00-00-01-00-00-00-00-07-50-1E-D4-00-01-35-0E-00-00-00-2B-00-1C-06-38-00-00-00-00-00-7E-1C-30-00-00-00-19-00-10-65-87-00-00-00-28-00-1E-A1-C0-00-00-00-09-76-72-36-6C-65-76-72-61-69-00-00-00-0A-C3-96-7A-63-61-6E-37-30-39-31-00-00-00-01-00-00-00-01-00-00-00-3E-00-00-00-7D-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-00-00-00-00-00-DB-CE-2A-5E-00-06-5A-E0-00-00-00-01-00-00-00-00-07-50-10-E8-00-01-39-7C-00-00-00-2B-00-1C-06-38-00-00-00-40-00-5F-97-0D-00-00-00-19-00-10-65-87-00-00-00-3D-00-00-9A-9A-00-00-00-06-64-72-69-76-65-72-00-00-00-0C-54-45-52-4D-C4-B0-4E-41-54-C3-96-52-00-00-00-01-00-00-00-01-00-00-00-39-00-00-00-77-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-40-00-00-00-00-61-5D-9F-85-00-05-8E-FD-00-00-00-01-00-00-00-00-07-4F-F8-93-00-01-41-BD-00-00-00-19-00-10-65-87-00-00-00-03-00-E4-7C-1C-00-00-00-2B-00-1C-06-38-00-00-00-55-00-DE-48-32-00-00-00-0A-6B-65-72-69-6D-20-62-61-62-61-00-00-00-09-6B-61-6D-65-6C-64-69-6E-65-00-00-00-02-00-00-00-02-00-00-00-55-00-00-00-65-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-03-00-00-00-00-D7-23-05-36-00-00-2D-14-00-00-00-01-00-00-00-00-07-4F-F5-E2-00-01-42-AF-00-00-00-19-00-10-65-87-00-00-00-11-00-A0-BC-DF-00-00-00-2B-00-1C-06-38-00-00-00-35-00-FE-56-BE-00-00-00-05-56-61-68-69-74-00-00-00-07-62-61-73-74-69-65-6E-00-00-00-02-00-00-00-02-00-00-00-4B-00-00-00-99-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-11-00-00-00-00-AB-47-44-62-00-03-70-DC-00-00-00-01-00-00-00-00-07-4F-E9-69-00-01-46-EA-00-00-00-2B-00-1C-06-38-00-00-00-00-00-7E-1C-30-00-00-00-19-00-10-65-87-00-00-00-25-00-2F-B5-0B-00-00-00-09-76-72-36-6C-65-76-72-61-69-00-00-00-0B-4D-5F-61-5F-4E-5F-59-5F-61-5F-4B-00-00-00-02-00-00-00-02-00-00-00-32-00-00-00-5E-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-00-00-00-00-00-DB-CB-D5-4A-00-06-B2-D8-00-00-00-01-00-00-00-00-07-4F-DC-A5-00-01-4B-19-00-00-00-19-00-10-65-87-00-00-00-01-00-39-28-18-00-00-00-2B-00-1C-06-38-00-00-00-0F-00-79-FE-3C-00-00-00-08-4D-55-48-49-54-54-49-4E-00-00-00-08-6D-61-68-64-69-20-4D-52-00-00-00-01-00-00-00-01-00-00-00-47-00-00-00-8E-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-01-00-00-00-00-D8-73-F5-4C-00-05-54-F1-00-00-00-01-00-00-00-00-07-4F-C9-DE-00-01-50-FB-00-00-00-19-00-10-65-87-00-00-00-11-00-A0-BC-DF-00-00-00-2B-00-1C-06-38-00-00-00-0E-01-04-64-66-00-00-00-05-56-61-68-69-74-00-00-00-06-4E-61-68-69-64-61-00-00-00-03-00-00-00-03-00-00-00-64-00-00-00-64-00-00-00-08-00-00-01-4C-00-00-00-06-01-00-00-00-11-00-00-00-00-AB-45-9E-F3-00-01-4D-98".Replace("-", "").ToBytes());

                // TODO: Fix

                Encrypt(data.ToArray());
            } catch (Exception) { }
        }
Beispiel #21
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Facebook"/> class.
        /// </summary>
        /// <param name="_Player">The player.</param>
        internal Facebook(ClientAvatar Player)
        {
            this.Player = Player;

            if (this.Filled)
            {
                this.Connect();
            }
        }
Beispiel #22
0
        /// <summary>
        /// Initializes a new instance of the <see cref="Google"/> class.
        /// </summary>
        /// <param name="_Player">The player.</param>
        internal Google(ClientAvatar Player)
        {
            this.Player = Player;

            if (this.Filled)
            {
                this.Connect();
            }
        }
Beispiel #23
0
        internal Resources(ClientAvatar _Player, bool Initialize = false)
        {
            this.Player = _Player;

            if (Initialize)
            {
                this.Initialize();
            }
        }
Beispiel #24
0
        public override void Execute(Level level)
        {
            ChallangeCommand challangeCommand = this;

            try
            {
                ClientAvatar         player   = level.GetPlayerAvatar();
                Alliance             alliance = ObjectManager.GetAlliance(player.GetAllianceId());
                ChallengeStreamEntry cm       = new ChallengeStreamEntry();
                cm.SetMessage(challangeCommand.Message);
                cm.SetSenderId(player.GetId());
                cm.SetSenderName(player.GetAvatarName());
                cm.SetSenderLevel(player.GetAvatarLevel());
                ChallengeStreamEntry challengeStreamEntry = cm;
                int allianceRole = player.GetAllianceRole();
                challengeStreamEntry.SetSenderRole(allianceRole);
                challengeStreamEntry = (ChallengeStreamEntry)null;
                cm.SetId(alliance.GetChatMessages().Count + 1);
                cm.SetSenderLeagueId(player.GetLeagueId());
                alliance.AddChatMessage((UCS.Logic.StreamEntry.StreamEntry)cm);
                UCS.Logic.StreamEntry.StreamEntry      s = alliance.GetChatMessages().Find((Predicate <UCS.Logic.StreamEntry.StreamEntry>)(c => c.GetStreamEntryType() == 12));
                List <AllianceMemberEntry> .Enumerator enumerator;
                if (s != null)
                {
                    alliance.GetChatMessages().RemoveAll((Predicate <UCS.Logic.StreamEntry.StreamEntry>)(t => t == s));
                    foreach (AllianceMemberEntry allianceMember in alliance.GetAllianceMembers())
                    {
                        Level player1 = ResourcesManager.GetPlayer(allianceMember.GetAvatarId(), false);
                        if (player1.GetClient() != null)
                        {
                            new AllianceStreamEntryRemovedMessage(player1.GetClient(), s.GetId()).Send();
                        }
                    }
                    enumerator = new List <AllianceMemberEntry> .Enumerator();
                }
                foreach (AllianceMemberEntry allianceMember in alliance.GetAllianceMembers())
                {
                    Level player1 = ResourcesManager.GetPlayer(allianceMember.GetAvatarId(), false);
                    if (player1.GetClient() != null)
                    {
                        AllianceStreamEntryMessage Message = new AllianceStreamEntryMessage(player1.GetClient());
                        ChallengeStreamEntry       challengeStreamEntry1 = cm;
                        Message.SetStreamEntry((UCS.Logic.StreamEntry.StreamEntry)challengeStreamEntry1);
                        Message.Send();
                    }
                }
                enumerator = new List <AllianceMemberEntry> .Enumerator();

                player   = (ClientAvatar)null;
                alliance = (Alliance)null;
                cm       = (ChallengeStreamEntry)null;
            }
            catch (Exception ex)
            {
            }
        }
        internal override async void Process()
        {
            try {
                if (m_vChatMessage.Length > 0)
                {
                    if (m_vChatMessage.Length < 101)
                    {
                        if (m_vChatMessage[0] == '/')
                        {
                            Object obj = GameOpCommandFactory.Parse(m_vChatMessage);
                            if (obj != null)
                            {
                                string player = "";
                                if (this.Device.Player != null)
                                {
                                    player += " (" + this.Device.Player.Avatar.UserId + ", " +
                                              this.Device.Player.Avatar.AvatarName + ")";
                                }
                                ((GameOpCommand)obj).Execute(this.Device.Player);
                            }
                        }
                        else
                        {
                            ClientAvatar avatar     = this.Device.Player.Avatar;
                            long         allianceId = avatar.AllianceId;
                            if (allianceId > 0)
                            {
                                ChatStreamEntry cm = new ChatStreamEntry();
                                cm.ID = (int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds;
                                cm.SetSender(avatar);
                                cm.Message = m_vChatMessage;

                                Alliance alliance = ObjectManager.GetAlliance(allianceId);
                                if (alliance != null)
                                {
                                    alliance.AddChatMessage(cm);

                                    foreach (var op in alliance.GetAllianceMembers())
                                    {
                                        Level player = await ResourcesManager.GetPlayer(op.AvatarId);

                                        if (player.Client != null)
                                        {
                                            new AllianceStreamEntryMessage(player.Client)
                                            {
                                                StreamEntry = cm
                                            }.Send();
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            } catch (Exception) { }
        }
        async void LogUser()
        {
            try
            {
                ResourcesManager.LogPlayerIn(level, Client);
                level.Tick();
                level.SetIPAddress(Client.CIPAddress);
                LoginOkMessage l      = new LoginOkMessage(Client);
                ClientAvatar   avatar = level.GetPlayerAvatar();
                l.SetAccountId(avatar.GetId());
                l.SetPassToken(avatar.GetUserToken());
                l.SetServerMajorVersion(MajorVersion);
                l.SetServerBuild(MinorVersion);
                l.SetContentVersion(ContentVersion);
                l.SetServerEnvironment("prod");
                l.SetDaysSinceStartedPlaying(0);
                l.SetServerTime(Math.Round(level.GetTime().Subtract(new DateTime(1970, 1, 1)).TotalSeconds * 1000).ToString(CultureInfo.InvariantCulture));
                l.SetAccountCreatedDate(avatar.GetAccountCreationDate().ToString());
                l.SetStartupCooldownSeconds(0);
                l.SetCountryCode(avatar.GetUserRegion().ToUpper());
                PacketProcessor.Send(l);

                Alliance alliance = await ObjectManager.GetAlliance(level.GetPlayerAvatar().GetAllianceId());

                if (ResourcesManager.IsPlayerOnline(level))
                {
                    AllianceMailStreamEntry mail = new AllianceMailStreamEntry();
                    mail.SetId((int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds);
                    mail.SetSenderId(0);
                    mail.SetSenderAvatarId(0);
                    /*FOR FHX*/   //mail.SetSenderName("Clash Of Heroes Team");
                    mail.SetSenderName("Server Manager");
                    mail.SetIsNew(2);
                    mail.SetAllianceId(0);
                    mail.SetSenderLeagueId(22);
                    mail.SetAllianceBadgeData(1526735450);
                    /*FOR FHX*/   //mail.SetAllianceName("COH-TEAM");
                    mail.SetAllianceName("Server Admin");
                    mail.SetMessage(ConfigurationManager.AppSettings["AdminMessage"]);
                    mail.SetSenderLevel(500);
                    AvatarStreamEntryMessage p = new AvatarStreamEntryMessage(level.GetClient());
                    p.SetAvatarStreamEntry(mail);
                    PacketProcessor.Send(p);
                }

                if (alliance != null)
                {
                    PacketProcessor.Send(new AllianceFullEntryMessage(Client, alliance));
                    PacketProcessor.Send(new AllianceStreamMessage(Client, alliance));
                    PacketProcessor.Send(new AllianceWarHistoryMessage(Client, alliance));
                }
                PacketProcessor.Send(new AvatarStreamMessage(Client));
                PacketProcessor.Send(new OwnHomeDataMessage(Client, level));
                PacketProcessor.Send(new BookmarkMessage(Client));
            } catch (Exception) { }
        }
        public override async void Process(Level level)
        {
            try {
                if (m_vChatMessage.Length > 0)
                {
                    if (m_vChatMessage.Length < 101)
                    {
                        if (m_vChatMessage[0] == '/')
                        {
                            Object obj = GameOpCommandFactory.Parse(m_vChatMessage);
                            if (obj != null)
                            {
                                string player = "";
                                if (level != null)
                                {
                                    player += " (" + level.GetPlayerAvatar().GetId() + ", " +
                                              level.GetPlayerAvatar().GetAvatarName() + ")";
                                }
                                ((GameOpCommand)obj).Execute(level);
                            }
                        }
                        else
                        {
                            ClientAvatar avatar     = level.GetPlayerAvatar();
                            long         allianceId = avatar.GetAllianceId();
                            if (allianceId > 0)
                            {
                                ChatStreamEntry cm = new ChatStreamEntry();
                                cm.SetId((int)DateTime.UtcNow.Subtract(new DateTime(1970, 1, 1)).TotalSeconds);
                                cm.SetSender(avatar);
                                cm.SetMessage(m_vChatMessage);

                                Alliance alliance = await ObjectManager.GetAlliance(allianceId);

                                if (alliance != null)
                                {
                                    alliance.AddChatMessage(cm);

                                    foreach (var op in alliance.GetAllianceMembers())
                                    {
                                        Level player = await ResourcesManager.GetPlayer(op.GetAvatarId());

                                        if (player.GetClient() != null)
                                        {
                                            AllianceStreamEntryMessage p = new AllianceStreamEntryMessage(player.GetClient());
                                            p.SetStreamEntry(cm);
                                            PacketProcessor.Send(p);
                                        }
                                    }
                                }
                            }
                        }
                    }
                }
            } catch (Exception) { }
        }
Beispiel #28
0
        public override void Execute(Level level)
        {
            ClientAvatar avatar = level.GetPlayerAvatar();
            int          time   = avatar.GetShieldTime + Convert.ToInt32(TimeSpan.FromHours((double)((ShieldData)CSVManager.DataTables.GetDataById(ShieldId)).TimeH).TotalSeconds);

            avatar.SetShieldTime(time);
            int diamonds = ((ShieldData)CSVManager.DataTables.GetDataById(ShieldId)).Diamonds;

            avatar.UseDiamonds(diamonds);
        }
Beispiel #29
0
        internal override async void Process()
        {
            ClientAvatar _Player = this.Device.Player.Avatar;

            if (_Player != null)
            {
                _Player.AllianceUnits.Clear();
                _Player.SetAllianceCastleUsedCapacity(0);
            }
        }
Beispiel #30
0
        public override async void Execute(Level level)
        {
            ClientAvatar _Player = level.GetPlayerAvatar();

            if (_Player != null)
            {
                _Player.AllianceUnits.Clear();
                _Player.SetAllianceCastleUsedCapacity(0);
            }
        }