Ejemplo n.º 1
0
        public void SynchroInfo(bool announce = false)
        {
            var info  = GetInfo();
            var guild = GuildManager.GetGuild(GuildId);

            _client.Send(GuildAttrInfoPacket.Create(info, guild));
            //_client.Send(GuildDonationPacket.Create(info));

            if (guild != null)
            {
                guild.SendAllyList(_client);
                guild.SendEnemyList(_client);
            }

            _client.SendToScreen(Packets.Game.SpawnEntityPacket.Create(_client), true);


            if (announce)
            {
                string ann = string.Empty;
                if (guild != null)
                {
                    var master = guild.MasterGuild;
                    ann = master.Announce;
                }
                _client.SendMessage(ann);
            }
        }
Ejemplo n.º 2
0
        public bool SendInfoToClient()
        {
            var info = GetInfo();

            var guild = GuildManager.GetGuild(GuildId);

            if (guild != null)
            {
                guild = guild.MasterGuild;
            }

            _client.Send(GuildAttrInfoPacket.Create(info, guild));

            if (guild != null)
            {
                var msgAnnounce = Redux.Packets.Game.GuildPackets.Create(GuildAction.SetAnnounce, guild.AnnounceDate, 0);
                msgAnnounce.Strings.AddString(guild.Announce);
                _client.Send(msgAnnounce);

                guild.SendAllyList(_client);
                guild.SendEnemyList(_client);
            }

            return(true);
        }