Example #1
0
        private static void HandleSearchGuildByName(GameSession session, PacketReader packet)
        {
            string name = packet.ReadUnicodeString();

            List <Guild> guildList = GameServer.GuildManager.GetGuildListByName(name);

            session.Send(GuildPacket.DisplayGuildList(guildList));
        }
Example #2
0
        private static void HandleLoadGuildList(GameSession session, PacketReader packet)
        {
            int focusAttributes = packet.ReadInt();

            List <Guild> guildList = GameServer.GuildManager.GetGuildList();

            if (guildList.Count == 0)
            {
                return;
            }

            if (focusAttributes == -1)
            {
                session.Send(GuildPacket.DisplayGuildList(guildList));
                return;
            }

            // TODO: Filter guilds with focusAttributes
            session.Send(GuildPacket.DisplayGuildList(guildList));
        }