示例#1
0
        public void HandleConsortiaUpGrade(GSPacketIn packet)
        {
            int    consortiaID    = packet.ReadInt();
            string consortiaName  = packet.ReadString();
            int    consortiaLevel = packet.ReadInt();

            ConsortiaMgr.ConsortiaUpGrade(consortiaID, consortiaLevel);

            GamePlayer[] players = WorldMgr.GetAllPlayers();
            foreach (GamePlayer p in players)
            {
                if (p.PlayerCharacter.ConsortiaID == consortiaID)
                {
                    p.PlayerCharacter.ConsortiaLevel = consortiaLevel;
                    p.Out.SendTCP(packet);
                }
            }
        }
示例#2
0
        public void HandleConsortiaUpGrade(GSPacketIn packet)
        {
            int    consortiaID    = packet.ReadInt();
            string consortiaName  = packet.ReadString();
            int    consortiaLevel = packet.ReadInt();

            ConsortiaMgr.ConsortiaUpGrade(consortiaID, consortiaLevel);
            GamePlayer[] players = WorldMgr.GetAllPlayers();
            GamePlayer[] array   = players;
            for (int i = 0; i < array.Length; i++)
            {
                GamePlayer p = array[i];
                if (p.PlayerCharacter.ConsortiaID == consortiaID)
                {
                    p.PlayerCharacter.ConsortiaLevel = consortiaLevel;
                    p.Out.SendTCP(packet);
                }
            }
        }
        public void HandleConsortiaUpGrade(GSPacketIn packet)
        {
            int num = packet.ReadInt();

            packet.ReadString();
            int consortiaLevel = packet.ReadInt();

            ConsortiaMgr.ConsortiaUpGrade(num, consortiaLevel);
            GamePlayer[] allPlayers = WorldMgr.GetAllPlayers();
            GamePlayer[] array      = allPlayers;
            for (int i = 0; i < array.Length; i++)
            {
                GamePlayer gamePlayer = array[i];
                if (gamePlayer.PlayerCharacter.ConsortiaID == num)
                {
                    gamePlayer.PlayerCharacter.ConsortiaLevel = consortiaLevel;
                    gamePlayer.Out.SendTCP(packet);
                }
            }
        }