public static GuildAttrInfoPacket Create(Structures.GuildAttrInfoStruct info, Structures.Guild guild)
        {
            var packet = new GuildAttrInfoPacket();

            packet.GuildId = info.GuildId;
            packet.Rank    = info.Rank;
            //packet.EnrollmentDate = info.JoinDate;

            if (guild != null)
            {
                //packet.Unknown8 = 123456;
                packet.Fund = guild.Money;
                //packet.CP = guild.EMoney;
                packet.Donation    = (uint)info.SilverDonation;
                packet.Amount      = guild.Amount; // TODO: .GetSynAmount()
                packet.Leader      = guild.LeaderName;
                packet.MemberCount = (uint)guild.Amount;
                //packet.RequiredLevel = guild.RequiredLevel;
                //packet.RequiredMetempsychosis = guild.RequiredMetempsychosis;
                //packet.RequiredProfession = guild.RequiredProfession;
                // packet.Level = guild.Level;
            }

            return(packet);
        }
Exemplo n.º 2
0
        public static GuildDonationPacket Create(Structures.GuildAttrInfoStruct info)
        {
            var packet = new GuildDonationPacket();

            packet.UpdateFlags = GuildDonationFlags.AllDonations;
            packet.Money       = 2; // info.SilverDonation;
            packet.EMoney      = 3; // info.CPDonation;
            packet.Guide       = 4; // info.GuideDonation;
            packet.Pk          = 5; // info.PkDonation;
            packet.Arsenal     = 6; // info.ArsenalDonation;

            return(packet);
        }