public static byte[] SearchResult(MapleClient c, Map<Integer, MapleGuild> sorted) {
            MaplePacketLittleEndianWriter mplew = new MaplePacketLittleEndianWriter();

            mplew.writeShort(0x100); //header
            
            mplew.writeInt(sorted.size());
            if (sorted.size() > 0) {
                
            for (MapleGuild gs : sorted.values()) {
            mplew.writeInt(gs.getId()); // guild id 
            mplew.writeInt(gs.getLevel()); // guild level
            mplew.writeMapleAsciiString(gs.getName());
            mplew.writeMapleAsciiString(gs.getLeader(c).getName());
            mplew.writeInt(gs.getMembers().size()); // members
            mplew.writeInt(gs.getAveregeLevel()); // averege level
            }
            
            }
            return mplew.getPacket();
        }