Пример #1
0
        public void HandleConsortiaSmithUpGrade(GSPacketIn packet)
        {
            int    consortiaID   = packet.ReadInt();
            string consortiaName = packet.ReadString();
            int    smithLevel    = packet.ReadInt();

            ConsortiaMgr.ConsortiaSmithUpGrade(consortiaID, smithLevel);

            GamePlayer[] players = WorldMgr.GetAllPlayers();
            foreach (GamePlayer p in players)
            {
                if (p.PlayerCharacter.ConsortiaID == consortiaID)
                {
                    p.PlayerCharacter.SmithLevel = smithLevel;
                    p.Out.SendTCP(packet);
                }
            }
        }
Пример #2
0
        public void HandleConsortiaSmithUpGrade(GSPacketIn packet)
        {
            int    consortiaID   = packet.ReadInt();
            string consortiaName = packet.ReadString();
            int    smithLevel    = packet.ReadInt();

            ConsortiaMgr.ConsortiaSmithUpGrade(consortiaID, smithLevel);
            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.SmithLevel = smithLevel;
                    p.Out.SendTCP(packet);
                }
            }
        }
        public void HandleConsortiaSmithUpGrade(GSPacketIn packet)
        {
            int num = packet.ReadInt();

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

            ConsortiaMgr.ConsortiaSmithUpGrade(num, smithLevel);
            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.SmithLevel = smithLevel;
                    gamePlayer.Out.SendTCP(packet);
                }
            }
        }