Example #1
0
 public override void Write()
 {
     WriteH(2612);
     WriteS(player.nickname, 33);
     WriteD(player.exp);
     WriteD(player.rankId);
     WriteD(player.rankId);
     WriteD(player.gold);
     WriteD(player.cash);
     WriteD(clan.id);
     WriteD((int)player.clanAuthority);
     WriteQ(0);
     WriteC(player.pccafe);
     WriteC(player.tourneyLevel);
     WriteC(player.nickcolor);
     WriteS(clan.name, 17);
     WriteC(clan.rank);
     WriteC(clan.GetClanUnit());
     WriteD(clan.logo);
     WriteC(clan.nameColor);
     WriteD(10000);
     WriteC(0);
     WriteD(0);
     WriteD(player.lastRankUpDate); //109 BYTES
 }
Example #2
0
 public override void Write()
 {
     WriteH(1305);
     WriteD(error);
     WriteD(clan.id);
     WriteS(clan.name, 17);
     WriteC(clan.rank);
     WriteC(clan.GetClanPlayers());
     WriteC((byte)clan.maxPlayers);
     WriteD(clan.creationDate);
     WriteD(clan.logo);
     WriteC(clan.nameColor);
     WriteC(clan.GetClanUnit());
     WriteD(clan.exp);
     WriteD(10); //?
     WriteQ(clan.ownerId);
     if (owner != null)
     {
         WriteS(owner.nickname, 33);
         WriteC(owner.rankId);
     }
     else
     {
         WriteS("Indefinido", 33);
         WriteC(0); //RankId
     }
     WriteS(clan.informations, 255);
     WriteS("Temp", 21);
     WriteC((byte)clan.limitRankId);
     WriteC((byte)clan.limitAgeBigger);
     WriteC((byte)clan.limitAgeSmaller);
     WriteC((byte)clan.authorityConfig);
     WriteS(clan.notice, 255);
     WriteD(clan.partidas);
     WriteD(clan.vitorias);
     WriteD(clan.derrotas);
     WriteD(clan.partidas);
     WriteD(clan.vitorias);
     WriteD(clan.derrotas);
     //MELHORES MEMBROS DO CLÃ
     WriteQ(clan.BestPlayers.Exp.PlayerId);           //XP Adquirida (Total)
     WriteQ(clan.BestPlayers.Exp.PlayerId);           //XP Adquirida (Temporada)
     WriteQ(clan.BestPlayers.Wins.PlayerId);          //Vitória (Total)
     WriteQ(clan.BestPlayers.Wins.PlayerId);          //Vitória (Temporada)
     WriteQ(clan.BestPlayers.Kills.PlayerId);         //Kills (Total)
     WriteQ(clan.BestPlayers.Kills.PlayerId);         //Kills (Temporada)
     WriteQ(clan.BestPlayers.Headshot.PlayerId);      //Headshots (Total)
     WriteQ(clan.BestPlayers.Headshot.PlayerId);      //Headshots (Temporada)
     WriteQ(clan.BestPlayers.Participation.PlayerId); //Participação (Total)
     WriteQ(clan.BestPlayers.Participation.PlayerId); //Participação (Temporada)
     WriteT(clan.pontos);
 }
Example #3
0
 public override void Write()
 {
     WriteH(1570);
     WriteD(_erro);
     if (_erro == 0)
     {
         byte players = c.GetClanPlayers();
         WriteD(c.id);
         WriteS(c.name, 17);
         WriteC(c.rank);
         WriteC(players);
         WriteC((byte)c.maxPlayers);
         WriteD(c.creationDate);
         WriteD(c.logo);
         WriteC(c.nameColor);
         WriteC(c.GetClanUnit(players));
         WriteD(c.exp);
         WriteD(0);
         WriteQ(c.ownerId);
         WriteS(leader.nickname, 33);
         WriteC(leader.rankId);
         WriteS("", 255);
     }//727 bytes
 }
Example #4
0
        public override void Write()
        {
            WriteH(2566);
            WriteD(error);
            if (error != 0)
            {
                return;
            }
            EventVisitModel eventVisit = EventVisitSyncer.GetRunningEvent();

            WriteC(player.age);
            WriteS(player.nickname, 33);
            WriteD(player.exp);
            WriteD(player.rankId);
            WriteD(player.rankId);
            WriteD(player.gold);
            WriteD(player.cash);
            WriteD(clan.id);
            WriteD((int)player.clanAuthority);
            WriteD(player.nickname == "" ? 1 : 0);
            WriteD(0);
            WriteC(player.pccafe);
            WriteC(player.tourneyLevel);
            WriteC(player.nickcolor);
            WriteS(clan.name, 17);
            WriteC(clan.rank);
            WriteC(clan.GetClanUnit());
            WriteD(clan.logo);
            WriteC(clan.nameColor);
            WriteD(10000);
            WriteC(0);
            WriteD(0);
            WriteD(player.lastRankUpDate); //109 BYTES
            WriteD(player.statistics.fights);
            WriteD(player.statistics.fightsWin);
            WriteD(player.statistics.fightsLost);
            WriteD(player.statistics.fightsDraw);
            WriteD(player.statistics.kills);
            WriteD(player.statistics.headshots);
            WriteD(player.statistics.deaths);
            WriteD(player.statistics.totalfights);
            WriteD(player.statistics.totalkills);
            WriteD(player.statistics.escapes);
            WriteD(player.statistics.fights);
            WriteD(player.statistics.fightsWin);
            WriteD(player.statistics.fightsLost);
            WriteD(player.statistics.fightsDraw);
            WriteD(player.statistics.kills);
            WriteD(player.statistics.headshots);
            WriteD(player.statistics.deaths);
            WriteD(player.statistics.totalfights);
            WriteD(player.statistics.totalkills);
            WriteD(player.statistics.escapes);
            WriteD(player.equipments.red);
            WriteD(player.equipments.blue);
            WriteD(player.equipments.helmet);
            WriteD(player.equipments.beret);
            WriteD(player.equipments.dino);
            WriteD(player.equipments.primary);
            WriteD(player.equipments.secondary);
            WriteD(player.equipments.melee);
            WriteD(player.equipments.grenade);
            WriteD(player.equipments.special);
            WriteH(0); //Auxiliar de cor da mira
            WriteD(player.bonus.fakeRank);
            WriteD(player.bonus.fakeRank);
            WriteS(player.bonus.fakeNick, 33);
            WriteH(player.bonus.sightColor);
            WriteC(player.country);
            CheckGameEvents(eventVisit);
            if (Settings.ClientVersion == "1.15.23" || Settings.ClientVersion == "1.15.37")
            {
                GetInventoryInfo();
                WriteC(Settings.InventoryActive);
                WriteD(charas.Count);
                WriteD(weapons.Count);
                WriteD(cupons.Count);
                WriteD(0);
                for (int i = 0; i < charas.Count; i++)
                {
                    ItemsModel item = charas[i];
                    WriteQ(item.objectId);
                    WriteD(item.id);
                    WriteC(item.equip);
                    WriteD(item.count);
                }
                for (int i = 0; i < weapons.Count; i++)
                {
                    ItemsModel item = weapons[i];
                    WriteQ(item.objectId);
                    WriteD(item.id);
                    WriteC(item.equip);
                    WriteD(item.count);
                }
                for (int i = 0; i < cupons.Count; i++)
                {
                    ItemsModel item = cupons[i];
                    WriteQ(item.objectId);
                    WriteD(item.id);
                    WriteC(item.equip);
                    WriteD(item.count);
                }
            }
            WriteC(Settings.OutpostActive);
            WriteD(player.brooch);
            WriteD(player.insignia);
            WriteD(player.medal);
            WriteD(player.blueorder);
            WriteC(player.missions.actualMission);
            WriteC(player.missions.card1);
            WriteC(player.missions.card2);
            WriteC(player.missions.card3);
            WriteC(player.missions.card4);
            WriteB(player.GetCardFlags(player.missions.mission1, player.missions.list1));
            WriteB(player.GetCardFlags(player.missions.mission2, player.missions.list2));
            WriteB(player.GetCardFlags(player.missions.mission3, player.missions.list3));
            WriteB(player.GetCardFlags(player.missions.mission4, player.missions.list4));
            WriteC(player.missions.mission1);
            WriteC(player.missions.mission2);
            WriteC(player.missions.mission3);
            WriteC(player.missions.mission4);
            WriteB(player.missions.list1);
            WriteB(player.missions.list2);
            WriteB(player.missions.list3);
            WriteB(player.missions.list4);
            WriteQ(player.titles.Flags);
            WriteC(player.titles.Equiped1);
            WriteC(player.titles.Equiped2);
            WriteC(player.titles.Equiped3);
            WriteD(player.titles.Slots);
            WriteD(44); //Tutorial
            WriteD(1);  //Deathmatch
            WriteD(25); //Destruction
            WriteD(35); //Sabotage
            WriteD(11); //Supression
            WriteD(39); //Defense
            WriteD(1);  //Challenge
            WriteD(40); //Dinosaur
            WriteD(1);  //Sniper
            WriteD(1);  //Shotgun
            WriteD(0);  //HeadHunter
            WriteD(0);  //Knuckle
            WriteD(54); //CrossCounter
            WriteD(1);  //Chaos
            if (Settings.ClientVersion == "1.15.38" || Settings.ClientVersion == "1.15.39" || Settings.ClientVersion == "1.15.41" || Settings.ClientVersion == "1.15.42")
            {
                WriteD(1);                        //TheifMode
            }
            WriteC((byte)MapsXML.ModeList.Count); //124 maps ver 42

            WriteC(4);                            //(Flag pages | 4 bytes)
            WriteD(MapsXML.maps1);
            WriteD(MapsXML.maps2);
            WriteD(MapsXML.maps3);
            WriteD(MapsXML.maps4);
            WriteB(MapsXML.ModeBytes);
            WriteB(MapsXML.TagBytes);

            WriteC(Settings.MissionActive); //Pages Count
            WriteD(MissionsXML.missionPage1);
            WriteD(0);                      //Multiplicado por 100?
            WriteD(0);                      //Multiplicado por 100?
            WriteC(0);
            WriteH(20);                     //length de algo.
            //WriteB(new byte[20] { 0x70, 0x0C, 0x94, 0x2D, 0x48, 0x08, 0xDD, 0x1E, 0xB0, 0xAB, 0x1A, 0x00, 0x99, 0x7B, 0x42, 0x00, 0x70, 0x0C, 0x94, 0x2D });
            WriteB(new byte[20]);
            WriteD(player.IsGM() || player.HaveAcessLevel());
            WriteD(xmas);
            WriteC(1); //Repair?

            WriteVisitEvent(eventVisit);

            //WriteD(int.Parse(DateTime.Now.ToString("yyMMddHHmm"))); //DataNow By Server

            //WriteS("10.120.1.44", 256);
            //WriteH(0); //8085
            //WriteH(0);

            //WriteC(0); //Presentes
            //WriteH(1); //1
            //WriteC(0);

            //WriteC(1);
            //WriteC(7); //6

            //WriteC(4); //Vip
            //WriteC(1); //Posição do item VIP na loja
            //WriteC(1);
            //WriteC(2);
            //WriteC(5);
            //WriteC(3);
            //WriteC(6);

            WriteD(uint.Parse(DateTime.Now.ToString("yyMMddHHmm"))); //DataNow By Server
            //writeB(new byte[256]);
            WriteS("10.120.1.44", 256);                              //?
            WriteH(8085);                                            //8085

            WriteC(1);                                               //gift system

            WriteH(0);
            WriteH(1);
            WriteC(0);

            WriteH(1);
            WriteC(1);
            WriteC(6);
            WriteH(4);
            WriteC(2);
            WriteC(1);
            WriteC(5);
            WriteC(3);

            charas  = null;
            weapons = null;
            cupons  = null;
        }
Example #5
0
        public override void Write()
        {
            if (room == null)
            {
                return;
            }
            WriteH(3336);
            WriteC((byte)winner);
            WriteH(playersFlag);
            WriteH(missionsFlag);
            WriteB(array1);
            Clan clan = ClanManager.GetClan(player.clanId);

            WriteS(player.nickname, 33);
            WriteD(player.exp);
            WriteD(player.rankId);
            WriteD(player.rankId);
            WriteD(player.gold);
            WriteD(player.cash);
            WriteD(clan.id);
            WriteD((int)player.clanAuthority);
            WriteD(0);
            WriteD(0);
            WriteC(player.pccafe);
            WriteC(player.tourneyLevel);
            WriteC(player.nickcolor);
            WriteS(clan.name, 17);
            WriteC(clan.rank);
            WriteC(clan.GetClanUnit());
            WriteD(clan.logo);
            WriteC(clan.nameColor);
            WriteD(0);
            WriteC(0);
            WriteD(0);
            WriteD(player.lastRankUpDate);
            WriteD(player.statistics.fights);
            WriteD(player.statistics.fightsWin);
            WriteD(player.statistics.fightsLost);
            WriteD(player.statistics.fightsDraw);
            WriteD(player.statistics.kills);
            WriteD(player.statistics.headshots);
            WriteD(player.statistics.deaths);
            WriteD(player.statistics.totalfights);
            WriteD(player.statistics.totalkills);
            WriteD(player.statistics.escapes);
            WriteD(player.statistics.fights);
            WriteD(player.statistics.fightsWin);
            WriteD(player.statistics.fightsLost);
            WriteD(player.statistics.fightsDraw);
            WriteD(player.statistics.kills);
            WriteD(player.statistics.headshots);
            WriteD(player.statistics.deaths);
            WriteD(player.statistics.totalfights);
            WriteD(player.statistics.totalkills);
            WriteD(player.statistics.escapes);
            if (isBotMode)
            {
                for (int i = 0; i < 16; i++)
                {
                    WriteH(room.slots[i].score);
                }
            }
            else if (room.mode == RoomTypeEnum.Destruction || room.mode == RoomTypeEnum.Suppression)
            {
                WriteH(room.redRounds);
                WriteH(room.blueRounds);
                for (int i = 0; i < 16; i++)
                {
                    WriteC((byte)room.slots[i].objetivos);
                }
            }
            else if (room.mode == RoomTypeEnum.Dino)
            {
                WriteH(room.redDino);
                WriteH(room.blueDino);
                for (int i = 0; i < 16; i++)
                {
                    WriteC((byte)room.slots[i].objetivos);
                }
            }
            else if (room.mode == RoomTypeEnum.CrossCounter)
            {
                WriteH(room.redKills);
                WriteH(room.blueKills);
                for (int i = 0; i < 16; i++)
                {
                    WriteC((byte)room.slots[i].objetivos);
                }
            }
            WriteC(0);
            WriteD(0);
            WriteB(new byte[16]);
        }
Example #6
0
        public override void Write()
        {
            WriteH(3842);
            if (player == null)
            {
                WriteD(0x80000000);
                return;
            }
            Clan clan = ClanManager.GetClan(player.clanId);

            WriteD(player.slotId);
            WriteS(IsAuthority ? player.nickname + $" ({player.playerId})" : player.nickname, 33);
            WriteD(player.exp);
            WriteD(player.GetRank());
            WriteD(player.rankId);
            WriteD(player.gold);
            WriteD(player.cash);
            WriteD(clan.id);
            WriteD((int)player.clanAuthority);
            WriteD(0);
            WriteD(0);
            WriteC(player.pccafe);
            WriteC(player.tourneyLevel);
            WriteC(player.nickcolor);
            WriteS(clan.name, 17);
            WriteC(clan.rank);
            WriteC(clan.GetClanUnit());
            WriteD(clan.logo);
            WriteC(clan.nameColor);
            WriteC(0);
            WriteD(0);
            WriteD(0);
            WriteD(player.lastRankUpDate);
            WriteD(player.statistics.fights);
            WriteD(player.statistics.fightsWin);
            WriteD(player.statistics.fightsLost);
            WriteD(player.statistics.fightsDraw);
            WriteD(player.statistics.kills);
            WriteD(player.statistics.headshots);
            WriteD(player.statistics.deaths);
            WriteD(player.statistics.totalfights);
            WriteD(player.statistics.totalkills);
            WriteD(player.statistics.escapes);
            WriteD(player.statistics.fights);
            WriteD(player.statistics.fightsWin);
            WriteD(player.statistics.fightsLost);
            WriteD(player.statistics.fightsDraw);
            WriteD(player.statistics.kills);
            WriteD(player.statistics.headshots);
            WriteD(player.statistics.deaths);
            WriteD(player.statistics.totalfights);
            WriteD(player.statistics.totalkills);
            WriteD(player.statistics.escapes);
            WriteD(player.equipments.red);
            WriteD(player.equipments.blue);
            WriteD(player.equipments.helmet);
            WriteD(player.equipments.beret);
            WriteD(player.equipments.dino);
            WriteD(player.equipments.primary);
            WriteD(player.equipments.secondary);
            WriteD(player.equipments.melee);
            WriteD(player.equipments.grenade);
            WriteD(player.equipments.special);
            WriteD(player.titles.Equiped1);
            WriteD(player.titles.Equiped2);
            WriteD(player.titles.Equiped3);
        }